From 70bcace7b483955bc9f518075b5e1bc3c8188c51 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E8=8A=B1=E6=9C=89=E6=B8=85=E9=A6=99=E6=9C=88=E6=9C=89?=
=?UTF-8?q?=E9=98=B4?= <185154740@qq.com>
Date: Mon, 17 Jan 2022 10:42:59 +0800
Subject: [PATCH] bug
---
src/apps/AppMarryAndDie/Add.vue | 13 ++++++++++---
src/apps/AppMarryAndDie/AppMarryAndDie.vue | 4 ++++
2 files changed, 14 insertions(+), 3 deletions(-)
diff --git a/src/apps/AppMarryAndDie/Add.vue b/src/apps/AppMarryAndDie/Add.vue
index eef95d38..96aff163 100644
--- a/src/apps/AppMarryAndDie/Add.vue
+++ b/src/apps/AppMarryAndDie/Add.vue
@@ -32,7 +32,7 @@
-
+
@@ -102,6 +102,9 @@ export default {
if (!this.forms.phone) {
return this.$u.toast('请输入联系电话')
}
+ if (!this.forms.content) {
+ return this.$u.toast('请输入活动详情')
+ }
const imgs = []
if (this.forms.files) {
@@ -135,8 +138,12 @@ export default {
}, 600)
}
})
- } else {
- this.$u.toast('失败')
+ .catch(() => {
+ this.$u.toast('发布失败')
+ })
+ .finally(() => {
+ this.flag = false
+ })
}
})
},
diff --git a/src/apps/AppMarryAndDie/AppMarryAndDie.vue b/src/apps/AppMarryAndDie/AppMarryAndDie.vue
index 1b5363f2..79ee43e3 100644
--- a/src/apps/AppMarryAndDie/AppMarryAndDie.vue
+++ b/src/apps/AppMarryAndDie/AppMarryAndDie.vue
@@ -181,8 +181,12 @@ export default {
if (res.code == 0) {
this.datas = this.current > 1 ? [...this.datas, ...res.data.records] : res.data.records
this.pages = res.data.pages
+ this.$forceUpdate()
}
})
+ .finally(() => {
+ this.$forceUpdate()
+ })
},
getEchart() {