Browse Source

登录方式改变

soft5566 3 years ago
parent
commit
0af7115682
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/components/login/Login.vue

+ 2 - 2
src/components/login/Login.vue

@@ -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>