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) {
req.axiosGet(`/client/plan/${plan_id}/result_message`).then(res => {
if (res.code == 200) {
sessionStorage.setItem('message', JSON.stringify(res.data));
} else {
self.openErrorDialog(res.message);
}
}).catch(err => { });
if (plan_id) {
req.axiosGet(`/client/plan/${plan_id}/result_message`).then(res => {
if (res.code == 200) {
sessionStorage.setItem('message', JSON.stringify(res.data));
} else {
self.openErrorDialog(res.message);
}
}).catch(err => { });
}
},
//获取白名单验证码