feat: open permission
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
|
||||
import { defineStore } from 'pinia';
|
||||
import { RouteMenu } from '/nerv-base/router/helper/menu-helper';
|
||||
import { ModuleMenu } from '/nerv-base/router/types';
|
||||
@@ -89,7 +88,8 @@ export const useRouteStore = defineStore({
|
||||
this.route.sort((a, b) => {
|
||||
return a.meta?.index - b.meta?.index;
|
||||
});
|
||||
const initPcResource = { application: {}, menus: [] };
|
||||
// const initPcResource = { application: {}, menus: [] };
|
||||
let initPcResource = [];
|
||||
this.routeModule.sort((a, b) => {
|
||||
return a.route?.meta?.index - b.route?.meta?.index;
|
||||
});
|
||||
@@ -115,8 +115,8 @@ export const useRouteStore = defineStore({
|
||||
delete item.route;
|
||||
});
|
||||
}
|
||||
initPcResource.application = appConfig.resourceInfo?.application as object;
|
||||
initPcResource.menus = appConfig.resourceInfo?.dealReosurceList
|
||||
// initPcResource.application = appConfig.resourceInfo?.application as object;
|
||||
initPcResource = appConfig.resourceInfo?.dealReosurceList
|
||||
? appConfig.resourceInfo?.dealReosurceList(info)
|
||||
: info;
|
||||
new NSAxios({
|
||||
|
Reference in New Issue
Block a user