diff --git a/src/api/activity.ts b/src/api/activity.ts index 9a0128c..ed152bd 100644 --- a/src/api/activity.ts +++ b/src/api/activity.ts @@ -2,6 +2,7 @@ import request from '@/utils/request' export interface IRewardData { + _id?: string id?: number rank?: number rankEnd?: number diff --git a/src/views/marketing/coupon_edit.vue b/src/views/marketing/coupon_edit.vue index d58cf5c..432cd4f 100644 --- a/src/views/marketing/coupon_edit.vue +++ b/src/views/marketing/coupon_edit.vue @@ -247,6 +247,10 @@ export default class extends Vue { try { await this.$refs.postForm.validate() this.loading = true + if (this.postForm.content.search(/meta name=.+?viewport/) === -1) { + const metaStr = '\n\n' + this.postForm.content = this.postForm.content.replace('', `${metaStr}`) + } const { data } = await saveCoupon(this.postForm) this.postForm = data if (this.postForm.validBegin && this.postForm.validEnd) {