From bf58711c882352bfbb6ab263eb44c8ee610813e6 Mon Sep 17 00:00:00 2001 From: chc <1501738723@qq.com> Date: Wed, 15 Mar 2023 19:41:08 +0800 Subject: [PATCH] =?UTF-8?q?-fix=20APP=E7=89=88=E6=9C=AC=E6=97=B6=E9=97=B4?= =?UTF-8?q?=E9=97=AE=E9=A2=98,=E5=BE=AE=E4=BF=A1=E6=B6=88=E6=81=AF?= =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=97=B6=E9=97=B4=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../member/message-manage/weChatMessageManager.vue | 3 +++ manager/src/views/sys/app-version/appVersion.vue | 12 +++++++----- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/manager/src/views/member/message-manage/weChatMessageManager.vue b/manager/src/views/member/message-manage/weChatMessageManager.vue index 4d9e2a59..1bc0d3f7 100644 --- a/manager/src/views/member/message-manage/weChatMessageManager.vue +++ b/manager/src/views/member/message-manage/weChatMessageManager.vue @@ -281,6 +281,9 @@ export default { wechatFormDataEdit() { this.$refs['wechatFormData'].validate((valid) => { if (valid) { + if(!this.wechatFormData.updateTime){ + this.wechatFormData.updateTime = '' + } editWechatMessageTemplate(this.id, this.wechatFormData).then(res => { if (res.message === 'success') { this.$Message.success('微信模板修改成功'); diff --git a/manager/src/views/sys/app-version/appVersion.vue b/manager/src/views/sys/app-version/appVersion.vue index c4d15694..5aa32fc5 100644 --- a/manager/src/views/sys/app-version/appVersion.vue +++ b/manager/src/views/sys/app-version/appVersion.vue @@ -342,11 +342,13 @@ export default { this.$refs.form.validate((valid) => { if (valid) { this.submitLoading = true; - const versionUpdateDate = this.$options.filters.unixToDate( - this.form.versionUpdateDate / 1000 - ); - this.form.versionUpdateDate = versionUpdateDate; - this.form.updateTime = versionUpdateDate; + if(JSON.stringify(this.form.versionUpdateDate).includes('T')){ + const versionUpdateDate = this.$options.filters.unixToDate( + this.form.versionUpdateDate / 1000 + ); + this.form.versionUpdateDate = versionUpdateDate; + this.form.updateTime = versionUpdateDate; + } if (this.modalType == 0) { // 添加 避免编辑后传入id等数据 记得删除 delete this.form.id;