瀏覽代碼

分配权限

pull/103/head
余菲 1 年之前
父節點
當前提交
d26a42d1cb
共有 2 個文件被更改,包括 3 次插入2 次删除
  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 查看文件



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

+ 2
- 2
src/views/system-manage/role-manage/components/AuthModal.vue 查看文件

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

Loading…
取消
儲存