From d36c1add6c02dae335f318cf233da6fe260fe797 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: Wed, 22 Dec 2021 09:44:40 +0800 Subject: [PATCH] css --- src/apps/AppUniMsg/Add.vue | 21 +++++++++++++-------- src/apps/AppUniMsg/AppUniMsg.vue | 30 ++++++++++++++++++++++-------- src/apps/AppUniMsg/Detail.vue | 18 +++++++++++++----- 3 files changed, 48 insertions(+), 21 deletions(-) diff --git a/src/apps/AppUniMsg/Add.vue b/src/apps/AppUniMsg/Add.vue index 168530a6..d16b6b62 100644 --- a/src/apps/AppUniMsg/Add.vue +++ b/src/apps/AppUniMsg/Add.vue @@ -58,14 +58,16 @@ export default { mounted() {}, methods: { getDetail() { - this.$http.post(`/app/appmininotice/queryDetailById?id=${this.id}`).then((res) => { - if (res?.data) { - this.forms = res.data - if (res.data.images) { - this.forms.images = JSON.parse(res.data.images || '[]') + if (this.id) { + this.$http.post(`/app/appmininotice/queryDetailById?id=${this.id}`).then((res) => { + if (res?.data) { + this.forms = res.data + if (res.data.images) { + this.forms.images = JSON.parse(res.data.images || '[]') + } } - } - }) + }) + } }, submit() { @@ -113,11 +115,14 @@ export default {