This commit is contained in:
花有清香月有阴
2022-02-24 17:21:32 +08:00
parent 8b0751dd8f
commit 899430f4cd
2 changed files with 2 additions and 7 deletions

View File

@@ -86,7 +86,7 @@ export default {
this.getList()
})
},
onshow() {
onShow() {
uni.$on('updateList', () => {
this.current = 1
this.getList()

View File

@@ -76,8 +76,6 @@ export default {
})
},
onShow() {},
mounted() {},
methods: {
submit() {
if (this.flag) return
@@ -119,7 +117,6 @@ export default {
})
.then((res) => {
if (res.code == 0) {
this.flag = false
this.$u.toast('提交成功')
uni.$emit('updateList')
setTimeout(() => {
@@ -128,10 +125,8 @@ export default {
}
})
.catch(() => {
this.$u.toast('提交失败')
})
.finally(() => {
this.flag = false
this.$u.toast('提交失败')
})
}
})