diff --git a/src/App.vue b/src/App.vue index 2db7e647..68aca5ca 100644 --- a/src/App.vue +++ b/src/App.vue @@ -86,7 +86,7 @@ async function initDict(key) { function getUserPermission(){ request(USER_PERMISSION,{permissionType:'PAGE'}).then(res=>{ - store.commit("SET_PERMISSION", res.result.flatMap(t=>t?.permissionPageList.map(s=>s.url))); + store.commit("SET_PERMISSION", res.data?.map(s=>s.url)); }) } diff --git a/src/components/project/OrgClass.vue b/src/components/project/OrgClass.vue index 66835508..f687e4a2 100644 --- a/src/components/project/OrgClass.vue +++ b/src/components/project/OrgClass.vue @@ -36,7 +36,7 @@