Sfoglia il codice sorgente

fix: search 组件绑定默认查询参数不生效的问题

许俊杰 2 anni fa
parent
commit
e5bfa979b2
1 ha cambiato i file con 2 aggiunte e 1 eliminazioni
  1. 2 1
      Web/src/components/table/search.vue

+ 2 - 1
Web/src/components/table/search.vue

@@ -139,7 +139,8 @@ watch(
 	() => props.modelValue,
 	(val) => {
 		state.innerModelValue = val;
-	}
+	},
+	{ immediate: true }
 );
 
 /** 监听 state.innerModelValue 变化 */