CzRger месяцев назад: 10
Родитель
Сommit
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',