From 113313a0496f958860a156b4330960e0d12522a7 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期四, 04 六月 2020 17:53:59 +0800
Subject: [PATCH] 2020-06-04

---
 src/router/index.js |   16 +++++++++-------
 1 files changed, 9 insertions(+), 7 deletions(-)

diff --git a/src/router/index.js b/src/router/index.js
index 2960566..9cc1088 100644
--- a/src/router/index.js
+++ b/src/router/index.js
@@ -5,17 +5,19 @@
 import asyncComponent from '@/utils/asyncComponent'
 import asyncLoadComponent from '@/utils/asyncLoadComponent'
 
-const main = asyncLoadComponent(() => import('@/views/main'))
-const PrintTemplate = asyncLoadComponent(() => import('@/views/printTemplate'))
-const login = asyncLoadComponent(() => import('@/views/login'))
+const Main = asyncLoadComponent(() => import('@/views/main'))
+const Login = asyncLoadComponent(() => import('@/views/login'))
 const NotFound = asyncComponent(() => import('@/views/404'))
+const Mobile = asyncLoadComponent(() => import('@/views/mobile'))
+const PrintT = asyncLoadComponent(() => import('@/views/printTemplate'))
 
 const routers = [
-  {path: '/login', name: 'login', component: login, auth: false},
-  {path: '/print/:param', name: 'print', component: PrintTemplate, auth: false},
+  {path: '/login', name: 'login', component: Login, auth: false},
+  {path: '/print/:param', name: 'print', component: PrintT, auth: false},
   {path: '/ssologin/:param', name: 'ssologin', auth: true},
-  {path: '/main', name: 'main', component: main, auth: true},
-  {path: '/main/:param', name: 'pmain', component: main, auth: true}
+  {path: '/main', name: 'main', component: Main, auth: true},
+  {path: '/mobile', name: 'mobile', component: Mobile, auth: true},
+  {path: '/main/:param', name: 'pmain', component: Main, auth: true}
 ]
 
 export default class RouteConfig extends Component {

--
Gitblit v1.8.0