mirror of
https://gitee.com/log4j/pig-ui.git
synced 2024-12-23 05:40:20 +08:00
fixed #IHZUP
修改密码长度没有限制,导致登录不了
This commit is contained in:
parent
f08b8efd9c
commit
07848a6058
@ -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: '/',
|
||||
|
@ -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>
|
||||
|
@ -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
|
||||
|
@ -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>
|
||||
|
@ -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>
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user