CzRger 1 hónapja%!(EXTRA string=óta)
szülő
commit
ac1aed1f72

+ 1 - 1
src/stores/web.ts

@@ -73,7 +73,7 @@ export const useWebStore = defineStore('web', {
           const AppStore = useAppStore()
           this.searchAreaTreeRoleAuth = readonly(getTree(res.data.map(tag => {
             tag.sysLabels.map(type => {
-              type.sysIndexList = type.sysIndexList?.filter(index => AppStore.userInfo.sysRoles.some(r => r.sysRoleIndices.some(a => a.labelId == tag.id && a.typeId == type.id && a.indexId == index.indexId)))
+              type.sysIndexList = type.sysIndexList?.filter(index => AppStore.userInfo.sysRoles?.some(r => r.sysRoleIndices.some(a => a.labelId == tag.id && a.typeId == type.id && a.indexId == index.indexId)))
               return type
             })
             return tag

+ 1 - 1
src/views/manage/system/role/index.vue

@@ -69,7 +69,7 @@ const state: any = reactive({
       {value: "createByName", label: "创建人"},
       {value: "updateTime", label: "最后修改时间", width: 200},
       {value: "updateByName", label: "最后修改人"},
-      {value: "do", label: "操作", width: 240, fixed: 'right'},
+      {value: "do", label: "操作", width: 300, fixed: 'right'},
     ],
     form: {},
     formReal: {},

+ 1 - 1
src/views/manage/system/user/index.vue

@@ -78,7 +78,7 @@ const state: any = reactive({
       {value: "createByName", label: "创建人"},
       {value: "updateTime", label: "最后修改时间", width: 200},
       {value: "updateByName", label: "最后修改人"},
-      {value: "do", label: "操作", width: 320, fixed: 'right'},
+      {value: "do", label: "操作", width: 360, fixed: 'right'},
     ],
     form: {},
     formReal: {},