mirror of
https://github.com/cool-team-official/cool-admin-vue.git
synced 2025-12-12 13:42:50 +00:00
优化
This commit is contained in:
parent
1944e41206
commit
0cec75dc6e
@ -43,11 +43,13 @@ export default defineComponent({
|
||||
|
||||
// 值改变
|
||||
function onChange(val: string) {
|
||||
emit("update:modelValue", val);
|
||||
emit("change", val);
|
||||
const v = val === "" ? undefined : val;
|
||||
|
||||
emit("update:modelValue", v);
|
||||
emit("change", v);
|
||||
|
||||
if (props.prop) {
|
||||
Crud.value?.refresh({ page: 1, [props.prop]: val === "" ? undefined : val });
|
||||
Crud.value?.refresh({ page: 1, [props.prop]: v });
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user