Browse Source

添加清空按钮

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

+ 3 - 1
src/views/operation/recommend/detail.vue

@@ -440,7 +440,9 @@ export default {
     // 清空
     // 清空
     getEmpty(item) {
     getEmpty(item) {
       for (const key in item) {
       for (const key in item) {
-        item[key] = key === 'childrenList' ? [] : key === 'module' ? {} : ''
+        if (key !== 'id') {
+          item[key] = key === 'childrenList' ? [] : key === 'module' ? {} : ''
+        }
       }
       }
     },
     },