Explorar el Código

Merge branch 'develop/3.0.8' into test

DESKTOP-2S67K1S\31396 hace 2 años
padre
commit
0b213ff7ce
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  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) {
       for (const key in item) {
-        item[key] = key === 'childrenList' ? [] : key === 'module' ? {} : ''
+        if (key !== 'id') {
+          item[key] = key === 'childrenList' ? [] : key === 'module' ? {} : ''
+        }
       }
     },