Explorar o código

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

cc12458 hai 1 ano
pai
achega
9fa04b960c
Modificáronse 1 ficheiros con 1 adicións e 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: {
-      deep: true,
+      deep: false,
       handler: function() {
         if (!this.show) return;
         if (Object.keys(this.priviewData).length == 0) return;