Explorar o código

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

许俊杰 %!s(int64=2) %!d(string=hai) anos
pai
achega
e5bfa979b2
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  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 变化 */