Browse Source

默认配置

CzRger 7 months ago
parent
commit
a05a0ccec8
1 changed files with 3 additions and 0 deletions
  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',