[Vue3] Fixed loading of current plugins
This commit is contained in:
parent
d3d8c1e5f2
commit
17ffd19c5b
|
@ -1,7 +1,8 @@
|
|||
import { Module } from 'vuex';
|
||||
import { StateInterface } from 'src/store';
|
||||
import routes from './routes';
|
||||
import { FG_Plugin } from 'src/plugins';
|
||||
import { defineAsyncComponent } from 'vue';
|
||||
import { StateInterface } from 'src/store';
|
||||
import balance, { BalanceInterface } from './store/balance';
|
||||
|
||||
const plugin: FG_Plugin.Plugin = {
|
||||
|
@ -16,7 +17,7 @@ const plugin: FG_Plugin.Plugin = {
|
|||
priority: 0,
|
||||
name: 'current',
|
||||
permissions: ['balance_show'],
|
||||
widget: () => import('./components/Widget.vue'),
|
||||
widget: defineAsyncComponent(() => import('./components/Widget.vue')),
|
||||
},
|
||||
],
|
||||
};
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
import { Module, MutationTree, ActionTree, GetterTree } from 'vuex';
|
||||
//import store, { StateInterface } from 'src/store';
|
||||
import { StateInterface } from 'src/store';
|
||||
import { axios } from 'src/boot/axios';
|
||||
import { AxiosResponse } from 'axios';
|
||||
|
@ -30,7 +29,6 @@ export interface BalanceInterface {
|
|||
loading: number;
|
||||
}
|
||||
|
||||
//export interface StateInterfaceBalance extends StateInterface {
|
||||
export interface StateInterfaceBalance {
|
||||
balance: BalanceInterface;
|
||||
}
|
||||
|
|
|
@ -1,8 +1,9 @@
|
|||
import { FG_Plugin } from 'src/plugins';
|
||||
import mainRoutes from './routes';
|
||||
import store, { ScheduleInterface } from './store/schedule';
|
||||
import { Module } from 'vuex';
|
||||
import { defineAsyncComponent } from 'vue';
|
||||
import mainRoutes from './routes';
|
||||
import { FG_Plugin } from 'src/plugins';
|
||||
import { StateInterface } from 'src/store';
|
||||
import store, { ScheduleInterface } from './store/schedule';
|
||||
|
||||
const plugin: FG_Plugin.Plugin = {
|
||||
name: 'Schedule',
|
||||
|
@ -16,7 +17,7 @@ const plugin: FG_Plugin.Plugin = {
|
|||
priority: 0,
|
||||
name: 'stats',
|
||||
permissions: [],
|
||||
widget: () => import('./components/Widget.vue'),
|
||||
widget: defineAsyncComponent(() => import('./components/Widget.vue')),
|
||||
},
|
||||
],
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue