Browse Source

修复提交bug

DESKTOP-2S67K1S\31396 2 years ago
parent
commit
1cf6ab31fc
1 changed files with 4 additions and 2 deletions
  1. 4 2
      src/views/operation/recommend/detail.vue

+ 4 - 2
src/views/operation/recommend/detail.vue

@@ -461,8 +461,10 @@ export default {
       // 删除仅作展示的缓存数据
       // 删除仅作展示的缓存数据
       for (const index in this.form) {
       for (const index in this.form) {
         delete this.form[index].contentId
         delete this.form[index].contentId
-        this.form[index].module.description = this.form[index].description
-        delete this.form[index].description
+        if ('description' in this.form[index]) {
+          this.form[index].module.description = this.form[index].description
+          delete this.form[index].description
+        }
       }
       }
       submitThree(data).then(res => {
       submitThree(data).then(res => {
         if (res.code === 0) {
         if (res.code === 0) {