提交成功

This commit is contained in:
liuye
2022-06-16 11:23:56 +08:00
parent 423b4a4876
commit 930d067aab
2 changed files with 8 additions and 4 deletions

View File

@@ -233,7 +233,9 @@ export default {
this.$http.post("/app/pushmessage/addOrUpdate", params).then(res => { this.$http.post("/app/pushmessage/addOrUpdate", params).then(res => {
if (res?.code == 0) { if (res?.code == 0) {
this.$u.toast('发送成功') this.$u.toast('发送成功')
this.back() setTimeout(() => {
this.back()
}, 500)
// this.form = { // this.form = {
// content: '', // content: '',
// contentType: 'text', // contentType: 'text',

View File

@@ -257,9 +257,11 @@ export default {
if (res.code === 0) { if (res.code === 0) {
this.$u.toast('新增成功') this.$u.toast('新增成功')
uni.$emit('reload') uni.$emit('reload')
uni.navigateBack({ setTimeout(() => {
delta: 1 uni.navigateBack({
}) delta: 1
})
}, 500)
} }
}).catch((err) => { }).catch((err) => {
this.$u.toast(err) this.$u.toast(err)