|
1 | 1 | import Vue from 'vue'; |
2 | 2 | import Router from 'vue-router'; |
3 | 3 | const _import = require('./_import_' + process.env.NODE_ENV); |
4 | | -// in development env not use Lazy Loading,because Lazy Loading large page will cause webpack hot update too slow |
5 | | -// so only in production use Lazy Loading |
| 4 | +// in development env not use Lazy Loading,because Lazy Loading large page will cause webpack hot update too slow.so only in production use Lazy Loading |
6 | 5 |
|
7 | 6 | /* layout */ |
8 | 7 | import Layout from '../views/layout/Layout'; |
9 | 8 |
|
10 | 9 | /* login */ |
11 | 10 | const Login = _import('login/index'); |
12 | 11 | const authRedirect = _import('login/authredirect'); |
13 | | -const sendPWD = _import('login/sendpwd'); |
14 | | -const reset = _import('login/reset'); |
15 | 12 |
|
16 | 13 | /* dashboard */ |
17 | 14 | const dashboard = _import('dashboard/index'); |
@@ -80,8 +77,6 @@ Vue.use(Router); |
80 | 77 | export const constantRouterMap = [ |
81 | 78 | { path: '/login', component: Login, hidden: true }, |
82 | 79 | { path: '/authredirect', component: authRedirect, hidden: true }, |
83 | | - { path: '/sendpwd', component: sendPWD, hidden: true }, |
84 | | - { path: '/reset', component: reset, hidden: true }, |
85 | 80 | { path: '/404', component: Err404, hidden: true }, |
86 | 81 | { path: '/401', component: Err401, hidden: true }, |
87 | 82 | { |
|
0 commit comments