调整ajax请求返回信息

Signed-off-by: AnHanTech <admin@xixingwl.cn>
This commit is contained in:
AnHanTech
2023-02-08 02:17:33 +08:00
parent 98cfbb0b77
commit 1d50b93bf0
3 changed files with 4 additions and 2 deletions

View File

@@ -13,7 +13,8 @@
console.log(resLogin)
that.$ajax("Demo/test",{code:resLogin.code})
.then(res=>{
if (res.code == 200) {
console.log(res)
if (res.code == 1) {
that.saveOpenIdSession(res.data)
}
})