修复前端登录
This commit is contained in:
parent
02a66a8168
commit
c44d61929e
@ -84,7 +84,7 @@ export default {
|
|||||||
params: loginParam
|
params: loginParam
|
||||||
}).then(function (res) {
|
}).then(function (res) {
|
||||||
console.log(JSON.stringify(res));
|
console.log(JSON.stringify(res));
|
||||||
if (res.data == "success") {
|
if (res.data.code == 0 && res.data.msg == "success") {
|
||||||
that.$cookies.set("session", {"username": that.username}) ;
|
that.$cookies.set("session", {"username": that.username}) ;
|
||||||
//登录成功后
|
//登录成功后
|
||||||
that.cancelEnterkeyDefaultAction();
|
that.cancelEnterkeyDefaultAction();
|
||||||
|
Loading…
Reference in New Issue
Block a user