fix(模板中心):修复【落地页管理】使用已存在的模板,打开模板1展示空白,再打开模板2,展示的是模板1的内容

This commit is contained in:
Apple 2022-10-11 20:02:26 +08:00
parent b4074d5604
commit ee94f44529
1 changed files with 1 additions and 2 deletions

View File

@ -206,7 +206,6 @@ export default class mytemplate extends React.Component {
copyThemecustom(row.id).then(res => { copyThemecustom(row.id).then(res => {
handelResponse(res, (req) => { handelResponse(res, (req) => {
row.id = req.id; row.id = req.id;
sessionStorage.setItem("pageInfo", JSON.stringify(row))
sessionStorage.setItem("isSort", 0) sessionStorage.setItem("isSort", 0)
sessionStorage.setItem('pageChange', 0); sessionStorage.setItem('pageChange', 0);
}, () => { }, () => {
@ -214,9 +213,9 @@ export default class mytemplate extends React.Component {
}).catch(() => { }).catch(() => {
}); });
}else { }else {
sessionStorage.setItem("pageInfo", JSON.stringify(row))
sessionStorage.setItem('pageChange', 1); sessionStorage.setItem('pageChange', 1);
} }
sessionStorage.setItem("pageInfo", JSON.stringify(row))
sessionStorage.setItem('mouldType', 1); sessionStorage.setItem('mouldType', 1);
if (type) { if (type) {
window.location.href = "/#/edittemplate?type=" + type; window.location.href = "/#/edittemplate?type=" + type;