-fix APP版本时间问题,微信消息修改时间问题

master
chc 2023-03-15 19:41:08 +08:00
parent 48b3e3246c
commit bf58711c88
2 changed files with 10 additions and 5 deletions

View File

@ -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('微信模板修改成功');

View File

@ -342,11 +342,13 @@ export default {
this.$refs.form.validate((valid) => {
if (valid) {
this.submitLoading = true;
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;