fix: 优化断电
This commit is contained in:
parent
3efe75eb61
commit
4a4ffcfe72
|
@ -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));
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
@ -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);
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
@ -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)
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue