Ver código fonte

分配权限

pull/103/head
余菲 1 ano atrás
pai
commit
d26a42d1cb
2 arquivos alterados com 3 adições e 2 exclusões
  1. +1
    -0
      src/router/guard/permission-guard.js
  2. +2
    -2
      src/views/system-manage/role-manage/components/AuthModal.vue

+ 1
- 0
src/router/guard/permission-guard.js Ver arquivo

@@ -5,6 +5,7 @@ import { getUserInfo, signinRedirect, signoutRedirect } from '@/utils/oidc/index

export function createPermissionGuard(router) {
const userStore = useUserStore()
userStore.getUserInfos()
const permissionStore = usePermissionStore()
router.beforeEach(async(to, from, next) => {
const oidcUser = await getUserInfo()

+ 2
- 2
src/views/system-manage/role-manage/components/AuthModal.vue Ver arquivo

@@ -9,7 +9,7 @@
<n-tabs type="line" animated>
<n-tab-pane display-directive="show" name="pc" tab="管理端菜单">
<n-tree
v-if="tabsTreeVisible"
v-show="tabsTreeVisible"
ref="adminTreeRef"
block-line
cascade
@@ -24,7 +24,7 @@
</n-tab-pane>
<n-tab-pane display-directive="show" name="mp" tab="小程序菜单">
<n-tree
v-if="tabsTreeVisible"
v-show="tabsTreeVisible"
ref="miniTreeRef"
block-line
cascade

Carregando…
Cancelar
Salvar