Explorar el Código

watch监听中循环数组,触发无限循环
You may have an infinite update loop in watcher with expression

cc12458 hace 1 año
padre
commit
9fa04b960c
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/views/diagnosis/components/submitRecipe.vue

+ 1 - 1
src/views/diagnosis/components/submitRecipe.vue

@@ -378,7 +378,7 @@ export default {
       }
       }
     },
     },
     priviewData: {
     priviewData: {
-      deep: true,
+      deep: false,
       handler: function() {
       handler: function() {
         if (!this.show) return;
         if (!this.show) return;
         if (Object.keys(this.priviewData).length == 0) return;
         if (Object.keys(this.priviewData).length == 0) return;