From b3ddf60d042dd1f7a1778aa7ba383293075a24c1 Mon Sep 17 00:00:00 2001 From: Pan Date: Mon, 3 Jul 2017 13:33:26 +0800 Subject: [PATCH] rm duplicate code --- src/router/index.js | 7 +- src/views/login/index.vue | 5 - src/views/login/reset.vue | 178 ------------------------------------ src/views/login/sendpwd.vue | 117 ------------------------ 4 files changed, 1 insertion(+), 306 deletions(-) delete mode 100644 src/views/login/reset.vue delete mode 100644 src/views/login/sendpwd.vue 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 @@
admin账号为:admin@wallstreetcn.com 密码随便填
editor账号:editor@wallstreetcn.com 密码随便填
- - 忘记密码?(或首次登录) - 邮箱登录成功,请选择第三方验证 @@ -33,9 +30,7 @@ - - diff --git a/src/views/login/sendpwd.vue b/src/views/login/sendpwd.vue deleted file mode 100644 index cd26484e..00000000 --- a/src/views/login/sendpwd.vue +++ /dev/null @@ -1,117 +0,0 @@ - - - - -