zhengnaiwen_citu il y a 1 an
Parent
commit
baa93f1ccd
1 fichiers modifiés avec 5 ajouts et 1 suppressions
  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: '/',