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