Update main.js
This commit is contained in:
parent
f4a58ab995
commit
3ec64715ee
|
@ -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("保存成功")
|
||||
|
|
Loading…
Reference in New Issue