diff --git a/src/router/index.js b/src/router/index.js index 5b7ddc9a..78d1b725 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -1,8 +1,7 @@ import Vue from 'vue'; import Router from 'vue-router'; const _import = require('./_import_' + process.env.NODE_ENV); -// 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 +// 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 /* layout */ import Layout from '../views/layout/Layout'; @@ -10,8 +9,6 @@ import Layout from '../views/layout/Layout'; /* login */ const Login = _import('login/index'); const authRedirect = _import('login/authredirect'); -const sendPWD = _import('login/sendpwd'); -const reset = _import('login/reset'); /* dashboard */ const dashboard = _import('dashboard/index'); @@ -80,8 +77,6 @@ Vue.use(Router); export const constantRouterMap = [ { path: '/login', component: Login, hidden: true }, { path: '/authredirect', component: authRedirect, hidden: true }, - { path: '/sendpwd', component: sendPWD, hidden: true }, - { path: '/reset', component: reset, hidden: true }, { path: '/404', component: Err404, hidden: true }, { path: '/401', component: Err401, hidden: true }, { diff --git a/src/views/login/index.vue b/src/views/login/index.vue index 3f669781..faaae648 100644 --- a/src/views/login/index.vue +++ b/src/views/login/index.vue @@ -21,9 +21,6 @@