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;