zhengnaiwen_citu hace 1 año
padre
commit
baa93f1ccd
Se han modificado 1 ficheros con 5 adiciones y 1 borrados
  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: '/',