diff --git a/src/pages/exchangepage/template/main.js b/src/pages/exchangepage/template/main.js index 685ab308..81c61f6b 100644 --- a/src/pages/exchangepage/template/main.js +++ b/src/pages/exchangepage/template/main.js @@ -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(){