From a177f0364876158f499fe808e1daaf55a87d37a0 Mon Sep 17 00:00:00 2001 From: zhangds Date: Thu, 25 Apr 2024 11:21:06 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BC=98=E5=8C=96=E5=AE=9A=E5=88=B6?= =?UTF-8?q?=E6=B6=88=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.html | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) 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 => { }); + } }, //获取白名单验证码