Update main.js

This commit is contained in:
姜棚 2021-12-02 17:36:02 +08:00
parent f4a58ab995
commit 3ec64715ee
1 changed files with 5 additions and 3 deletions

View File

@ -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("保存成功")