diff --git a/src/pages/exchangepage/edittemplate/main.js b/src/pages/exchangepage/edittemplate/main.js index 2244fb61..8d2256b6 100644 --- a/src/pages/exchangepage/edittemplate/main.js +++ b/src/pages/exchangepage/edittemplate/main.js @@ -206,7 +206,7 @@ export default class edittemplate extends React.Component{ if(this.state.model.id > 0) { - if(this.state.isSystemModel) + if(this.state.isSystemModel == true) { formdata.sort = this.state.model.sort; putSystemTemplate(this.state.model.id,formdata).then((res)=>{ @@ -234,9 +234,11 @@ export default class edittemplate extends React.Component{ } else{ - - if(this.state.isSystemModel) + console.log("状态") + console.log(this.state.isSystemModel) + if(this.state.isSystemModel == true) { + formdata.sort = this.state.model.sort; addSystemTemplate(formdata).then((res)=>{ handelResponse(res,(req,msg)=>{ Notify.success("保存成功")