Skip to content

Commit b3ddf60

Browse files
committed
rm duplicate code
1 parent 4fa07ae commit b3ddf60

File tree

4 files changed

+1
-306
lines changed

4 files changed

+1
-306
lines changed

src/router/index.js

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,14 @@
11
import Vue from 'vue';
22
import Router from 'vue-router';
33
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
65

76
/* layout */
87
import Layout from '../views/layout/Layout';
98

109
/* login */
1110
const Login = _import('login/index');
1211
const authRedirect = _import('login/authredirect');
13-
const sendPWD = _import('login/sendpwd');
14-
const reset = _import('login/reset');
1512

1613
/* dashboard */
1714
const dashboard = _import('dashboard/index');
@@ -80,8 +77,6 @@ Vue.use(Router);
8077
export const constantRouterMap = [
8178
{ path: '/login', component: Login, hidden: true },
8279
{ path: '/authredirect', component: authRedirect, hidden: true },
83-
{ path: '/sendpwd', component: sendPWD, hidden: true },
84-
{ path: '/reset', component: reset, hidden: true },
8580
{ path: '/404', component: Err404, hidden: true },
8681
{ path: '/401', component: Err401, hidden: true },
8782
{

src/views/login/index.vue

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,6 @@
2121
</el-form-item>
2222
<div class='tips'>admin账号为:[email protected] 密码随便填</div>
2323
<div class='tips'>editor账号:[email protected] 密码随便填</div>
24-
<router-link to="/sendpwd" class="forget-pwd">
25-
忘记密码?(或首次登录)
26-
</router-link>
2724
</el-form>
2825
<el-dialog title="第三方验证" :visible.sync="showDialog">
2926
邮箱登录成功,请选择第三方验证
@@ -33,9 +30,7 @@
3330
</template>
3431

3532
<script>
36-
import { mapGetters } from 'vuex';
3733
import { isWscnEmail } from 'utils/validate';
38-
// import { getQueryObject } from 'utils';
3934
import socialSign from './socialsignin';
4035
4136
export default {

src/views/login/reset.vue

Lines changed: 0 additions & 178 deletions
This file was deleted.

src/views/login/sendpwd.vue

Lines changed: 0 additions & 117 deletions
This file was deleted.

0 commit comments

Comments
 (0)