|
|
@ -70,7 +70,6 @@ export const authorizationService = defineStore({ |
|
|
|
this.dealResourceTree(this.userResourceList); |
|
|
|
} else { |
|
|
|
const res = await this.appConfig.userResource(); |
|
|
|
console.log(res, 'hshshhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh'); |
|
|
|
|
|
|
|
this.userResourceList = res.data ? res.data : []; |
|
|
|
if (this.appConfig.defaultResource) { |
|
|
@ -92,7 +91,6 @@ export const authorizationService = defineStore({ |
|
|
|
//初始化菜单树
|
|
|
|
async initMenuResource() { |
|
|
|
const res = await this.appConfig.userResource(); |
|
|
|
console.log(res, 'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb'); |
|
|
|
|
|
|
|
this.initMenus = []; |
|
|
|
if (this.appConfig.resourceName && res.data && res.data.length) { |
|
|
|