fix: 优化定制消息

This commit is contained in:
zhangds 2024-04-25 11:21:06 +08:00
parent a1472fd23d
commit a177f03648
1 changed files with 9 additions and 7 deletions

View File

@ -281,13 +281,15 @@
/* 获取定制消息 */ /* 获取定制消息 */
getMessage(plan_id) { getMessage(plan_id) {
req.axiosGet(`/client/plan/${plan_id}/result_message`).then(res => { if (plan_id) {
if (res.code == 200) { req.axiosGet(`/client/plan/${plan_id}/result_message`).then(res => {
sessionStorage.setItem('message', JSON.stringify(res.data)); if (res.code == 200) {
} else { sessionStorage.setItem('message', JSON.stringify(res.data));
self.openErrorDialog(res.message); } else {
} self.openErrorDialog(res.message);
}).catch(err => { }); }
}).catch(err => { });
}
}, },
//获取白名单验证码 //获取白名单验证码