diff --git a/index.html b/index.html index f4b2150..780de25 100644 --- a/index.html +++ b/index.html @@ -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 => { }); + } }, //获取白名单验证码