CzRger 10 ヶ月 前
コミット
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',