|
|
@@ -102,8 +102,12 @@
|
|
|
.then(res => {
|
|
|
// console.log(res.data);
|
|
|
if (typeof(res.data.msg) != 'undefined' && res.data.msg != '' && JSON.stringify(res
|
|
|
- .data) !=
|
|
|
- '{}') {
|
|
|
+ .data) != '{}') {
|
|
|
+ console.log(typeof(res.data.msg));
|
|
|
+ if (res.data.msg == '用户名或密码不正确') {
|
|
|
+ _this.$message.error(res.data.msg);
|
|
|
+ return
|
|
|
+ }
|
|
|
_this.$message.success(res.data.msg);
|
|
|
sessionStorage.setItem('uname', username)
|
|
|
if (typeof(res.data.name) == 'undefined') {
|