Update main.js
This commit is contained in:
parent
64b002b780
commit
82c506b60a
|
@ -108,6 +108,11 @@ export default class mytemplate extends React.Component{
|
||||||
Notify.error("该模板是定制模板无法编辑");
|
Notify.error("该模板是定制模板无法编辑");
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
if(this.state.sourceIndex == 0)
|
||||||
|
{
|
||||||
copyThemecustom(row.id).then(res=>{
|
copyThemecustom(row.id).then(res=>{
|
||||||
handelResponse(res,(req,msg)=>{
|
handelResponse(res,(req,msg)=>{
|
||||||
row.id = req.id;
|
row.id = req.id;
|
||||||
|
@ -120,7 +125,12 @@ export default class mytemplate extends React.Component{
|
||||||
}).catch(err=>{
|
}).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(){
|
onBack(){
|
||||||
|
|
Loading…
Reference in New Issue