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'
 import enterprise from './enterprise'
 
 
 const type  = 0
 const type  = 0
-const items = type ? personal : enterprise
+const routeArray = [
+  personal,
+  enterprise
+]
+const items = routeArray[type]
 const remainingRouter = [
 const remainingRouter = [
   {
   {
     path: '/',
     path: '/',