From 1c6f59c40f0977cab456aa459f2705b51ce0a2bc Mon Sep 17 00:00:00 2001 From: zhangds Date: Thu, 25 Apr 2024 11:19:02 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BC=98=E5=8C=96=E5=88=B6=E5=AE=9A?= =?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 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/index.html b/index.html index 20ee00a..2d77662 100644 --- a/index.html +++ b/index.html @@ -148,7 +148,7 @@ //内置页顶图 document.title = res.data.title; self.plan_id = res.data.plan_id; - this.getMessage(); + this.getMessage(res.data.plan_id); this.pageType = res.data.page; localStorage.setItem('title', res.data.title); localStorage.setItem('product_list', JSON.stringify(res.data[this.typeList[res.data.page]].product_list)); @@ -280,8 +280,8 @@ }, /* 获取定制消息 */ - getMessage() { - req.axiosGet(`/client/plan/${this.plan_id}/result_message`).then(res => { + 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 {