fix: 优化制定消息
This commit is contained in:
parent
7988595de2
commit
1c6f59c40f
|
@ -148,7 +148,7 @@
|
||||||
//内置页顶图
|
//内置页顶图
|
||||||
document.title = res.data.title;
|
document.title = res.data.title;
|
||||||
self.plan_id = res.data.plan_id;
|
self.plan_id = res.data.plan_id;
|
||||||
this.getMessage();
|
this.getMessage(res.data.plan_id);
|
||||||
this.pageType = res.data.page;
|
this.pageType = res.data.page;
|
||||||
localStorage.setItem('title', res.data.title);
|
localStorage.setItem('title', res.data.title);
|
||||||
localStorage.setItem('product_list', JSON.stringify(res.data[this.typeList[res.data.page]].product_list));
|
localStorage.setItem('product_list', JSON.stringify(res.data[this.typeList[res.data.page]].product_list));
|
||||||
|
@ -280,8 +280,8 @@
|
||||||
},
|
},
|
||||||
|
|
||||||
/* 获取定制消息 */
|
/* 获取定制消息 */
|
||||||
getMessage() {
|
getMessage(plan_id) {
|
||||||
req.axiosGet(`/client/plan/${this.plan_id}/result_message`).then(res => {
|
req.axiosGet(`/client/plan/${plan_id}/result_message`).then(res => {
|
||||||
if (res.code == 200) {
|
if (res.code == 200) {
|
||||||
sessionStorage.setItem('message', JSON.stringify(res.data));
|
sessionStorage.setItem('message', JSON.stringify(res.data));
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue