loading
This commit is contained in:
@@ -39,11 +39,13 @@ export default {
|
|||||||
return this.$u.toast('请输入回答内容')
|
return this.$u.toast('请输入回答内容')
|
||||||
}
|
}
|
||||||
this.flag = true
|
this.flag = true
|
||||||
|
this.$loading()
|
||||||
this.$http.post(`/app/applearningquestion/addOrUpdateAnswer`, {
|
this.$http.post(`/app/applearningquestion/addOrUpdateAnswer`, {
|
||||||
...this.form
|
...this.form
|
||||||
}).then(res=> {
|
}).then(res=> {
|
||||||
if(res?.code==0) {
|
if(res?.code==0) {
|
||||||
this.$u.toast('提交成功!')
|
this.$u.toast('提交成功!')
|
||||||
|
uni.$emit('update')
|
||||||
setTimeout(()=> {
|
setTimeout(()=> {
|
||||||
uni.navigateBack()
|
uni.navigateBack()
|
||||||
}, 500)
|
}, 500)
|
||||||
|
|||||||
Reference in New Issue
Block a user