|
|
@@ -107,7 +107,7 @@
|
|
|
if (typeof(res.data.msg) != 'undefined' && res.data.msg != '' && JSON.stringify(res
|
|
|
.data) != '{}') {
|
|
|
// console.log(typeof(res.data.msg));
|
|
|
- if (res.data.msg == '用户名或密码不正确') {
|
|
|
+ if (res.data.state == 0 && typeof res.data.access_token == 'undefined') {
|
|
|
_this.$message.error(res.data.msg);
|
|
|
return
|
|
|
}
|
|
|
@@ -142,4 +142,4 @@
|
|
|
|
|
|
<style scoped>
|
|
|
@import url("./login.css");
|
|
|
-</style>
|
|
|
+</style>
|