mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-07-27 09:33:55 +08:00
fix:登录失败错误信息显示
This commit is contained in:
@@ -199,6 +199,7 @@ export default {
|
|||||||
this.$store.commit('setToken', JSON.stringify(data.data));
|
this.$store.commit('setToken', JSON.stringify(data.data));
|
||||||
goToPage('/home');
|
goToPage('/home');
|
||||||
}, (err) => {
|
}, (err) => {
|
||||||
|
showDanger(err.data.msg || '登录失败')
|
||||||
if (err.data != null && err.data.msg != null && err.data.msg.indexOf('图形验证码') > -1) {
|
if (err.data != null && err.data.msg != null && err.data.msg.indexOf('图形验证码') > -1) {
|
||||||
this.fetchCaptcha()
|
this.fetchCaptcha()
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user