fixed #IHZUP

修改密码长度没有限制,导致登录不了
This commit is contained in:
冷冷 2018-02-28 16:19:26 +08:00
parent f08b8efd9c
commit 07848a6058
6 changed files with 8 additions and 6 deletions

View File

@ -19,7 +19,7 @@ import Layout from '../views/layout/Layout'
}
**/
export const constantRouterMap = [
{ path: '/login', name: '登', component: _import('login/index'), hidden: true },
{ path: '/login', name: '登', component: _import('login/index'), hidden: true },
{ path: '/404', name: '404', component: _import('404'), hidden: true },
{
path: '/',

View File

@ -1,5 +1,5 @@
<template>
<iframe ref="iframe" src="http://139.129.231.236:59999/swagger-ui.html" frameborder="0" style="border:0;" width="100%"></iframe>
<iframe ref="iframe" src="http://127.0.0.1:9999/swagger-ui.html" frameborder="0" style="border:0;" width="100%"></iframe>
</template>
<script>

View File

@ -56,6 +56,8 @@
var validatePass = (rule, value, callback) => {
if (value === '') {
callback(new Error('请输入密码'))
} else if (value.length < 6) {
callback(new Error('密码不能小于6位'))
} else {
if (this.ruleForm2.newpassword1 !== '') {
this.$refs.ruleForm2.validateField('newpassword1')
@ -116,7 +118,7 @@
type: 'success',
duration: 2000
})
//
//
if (this.ruleForm2.newpassword1 !== '') {
this.$store.dispatch('LogOut').then(() => {
location.reload() // vue-router bug

View File

@ -1,6 +1,6 @@
<template>
<div class="dashboard-container">
<div class="dashboard-text">欢迎登</div>
<div class="dashboard-text">欢迎登</div>
<div class="dashboard-text">用户名{{name}}</div>
<div class="dashboard-text">角色名<span v-for='role in roles' :key='role'>{{role}}</span></div>
</div>

View File

@ -28,7 +28,7 @@
</router-link>
<el-dropdown-item divided>
<span @click="logout" style="display:block;">退出登</span>
<span @click="logout" style="display:block;">退出登</span>
</el-dropdown-item>
</el-dropdown-menu>
</el-dropdown>

View File

@ -39,7 +39,7 @@
<el-form-item>
<el-button type="primary" style="width:100%;" :loading="loading" @click.native.prevent="handleLogin">
</el-button>
</el-form-item>
</el-tab-pane>