DESKTOP-2S67K1S\31396 преди 2 години
родител
ревизия
1cf6ab31fc
променени са 1 файла, в които са добавени 4 реда и са изтрити 2 реда
  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) {
         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 => {
         if (res.code === 0) {