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: '/',