mirror of
https://github.com/iczer/vue-antd-admin
synced 2025-04-06 04:00:06 +08:00
fix(login): 修复 login 页面 error alert 关闭后再次输错密码不会显示的问题
This commit is contained in:
parent
c828cd50c7
commit
829a41b17d
@ -11,7 +11,7 @@
|
|||||||
<a-form @submit="onSubmit" :form="form">
|
<a-form @submit="onSubmit" :form="form">
|
||||||
<a-tabs size="large" :tabBarStyle="{textAlign: 'center'}" style="padding: 0 2px;">
|
<a-tabs size="large" :tabBarStyle="{textAlign: 'center'}" style="padding: 0 2px;">
|
||||||
<a-tab-pane tab="账户密码登录" key="1">
|
<a-tab-pane tab="账户密码登录" key="1">
|
||||||
<a-alert type="error" :closable="true" v-show="error" :message="error" showIcon style="margin-bottom: 24px;" />
|
<a-alert type="error" :closable="true" v-if="error" :message="error" @close='onClose' showIcon style="margin-bottom: 24px;" />
|
||||||
<a-form-item>
|
<a-form-item>
|
||||||
<a-input
|
<a-input
|
||||||
autocomplete="autocomplete"
|
autocomplete="autocomplete"
|
||||||
@ -121,12 +121,15 @@ export default {
|
|||||||
getRoutesConfig().then(result => {
|
getRoutesConfig().then(result => {
|
||||||
const routesConfig = result.data.data
|
const routesConfig = result.data.data
|
||||||
loadRoutes(routesConfig)
|
loadRoutes(routesConfig)
|
||||||
this.$router.push('/dashboard/workplace')
|
this.$router.push('/demo')
|
||||||
this.$message.success(loginRes.message, 3)
|
this.$message.success(loginRes.message, 3)
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
this.error = loginRes.message
|
this.error = loginRes.message
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
onClose() {
|
||||||
|
this.error = false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user