Update main.js

This commit is contained in:
姜棚 2021-11-30 04:34:50 +08:00
parent 64b002b780
commit 82c506b60a
1 changed files with 11 additions and 1 deletions

View File

@ -108,6 +108,11 @@ export default class mytemplate extends React.Component{
Notify.error("该模板是定制模板无法编辑");
return
}
if(this.state.sourceIndex == 0)
{
copyThemecustom(row.id).then(res=>{
handelResponse(res,(req,msg)=>{
row.id = req.id;
@ -120,7 +125,12 @@ export default class mytemplate extends React.Component{
}).catch(err=>{
});
}
else{
sessionStorage.setItem("pageInfo", JSON.stringify(row))
let link = window.location.href.replace(window.location.hash,"#/home/edittemplate");
window.open(link, "_blank")
}
}
onBack(){