浏览代码

feat: 路由

zhengnaiwen_citu 1 年之前
父节点
当前提交
baa93f1ccd
共有 1 个文件被更改,包括 5 次插入1 次删除
  1. 5 1
      src/router/modules/remaining.js

+ 5 - 1
src/router/modules/remaining.js

@@ -2,7 +2,11 @@ import personal from './personal'
 import enterprise from './enterprise'
 
 const type  = 0
-const items = type ? personal : enterprise
+const routeArray = [
+  personal,
+  enterprise
+]
+const items = routeArray[type]
 const remainingRouter = [
   {
     path: '/',