浏览代码

默认配置

CzRger 7 月之前
父节点
当前提交
a05a0ccec8
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      src/router/index.ts

+ 3 - 0
src/router/index.ts

@@ -69,6 +69,9 @@ export const initMainRouter = async () => {
         //     themeConfig = config.data
         //     initRootVar(themeConfig)
         // })
+        if (userInfo?.isAdmin) {
+            router.addRoute(manageRouter)
+        }
         themeConfig = {
             mainColor: '#2E81FF',
             logo: 'https://element-plus.org/images/element-plus-logo.svg',