fix: 优化断电

This commit is contained in:
zhangds 2024-02-22 15:51:27 +08:00
parent 3efe75eb61
commit 4a4ffcfe72
3 changed files with 20 additions and 2 deletions

View File

@ -79,7 +79,13 @@
type: settlementType
}
req.axiosPost('/key/settlement/create', params).then(res => {
console.log("点 =>", res)
console.log("点 =>", res);
if (res.code === 200) {
// 接口请求成功后,就不能再请求接口了
let obj_sy = JSON.parse(sessionStorage.getItem("bm_auth"));
obj_sy.settlement_data.is_settlement = true;
sessionStorage.setItem("bm_auth", JSON.stringify(obj_sy));
}
});
}

View File

@ -108,7 +108,13 @@
type: settlementType
}
req.axiosPost('/key/settlement/create', params).then(res => {
console.log("点 =>", res)
if (res.code === 200) {
// 接口请求成功后,就不能再请求接口了
let obj_sy = JSON.parse(sessionStorage.getItem("bm_auth"));
obj_sy.settlement_data.is_settlement = true;
sessionStorage.setItem("bm_auth", JSON.stringify(obj_sy));
}
console.log("点 =>", res);
});
}

View File

@ -75,6 +75,12 @@
type: settlementType
}
req.axiosPost('/key/settlement/create', params).then(res => {
if (res.code === 200) {
// 接口请求成功后,就不能再请求接口了
let obj_sy = JSON.parse(sessionStorage.getItem("bm_auth"));
obj_sy.settlement_data.is_settlement = true;
sessionStorage.setItem("bm_auth", JSON.stringify(obj_sy));
}
console.log("点 =>", res)
});
}