Commit a50ea978 authored by Mac's avatar Mac

处理提交问题

parent 8d36ff6f
...@@ -463,13 +463,7 @@ export default { ...@@ -463,13 +463,7 @@ export default {
}) })
return return
} }
if(this.addMsg.Content == ''){
uni.showToast({
title: '内容不能为空',
icon: 'none',
})
return
}
if(this.addMsg.StartTime == ''){ if(this.addMsg.StartTime == ''){
uni.showToast({ uni.showToast({
title: '请选择活动开始时间', title: '请选择活动开始时间',
...@@ -491,6 +485,13 @@ export default { ...@@ -491,6 +485,13 @@ export default {
}) })
return return
} }
if(this.addMsg.Content == ''){
uni.showToast({
title: '内容不能为空',
icon: 'none',
})
return
}
this.disbth = true this.disbth = true
...@@ -523,6 +524,9 @@ export default { ...@@ -523,6 +524,9 @@ export default {
},1000) },1000)
} }
},
failed=>{//错误处理
this.disbth = false
} }
); );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment