提交成功

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 => {
if (res?.code == 0) {
this.$u.toast('发送成功')
this.back()
setTimeout(() => {
this.back()
}, 500)
// this.form = {
// content: '',
// contentType: 'text',

View File

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