mirror of
https://github.com/cool-team-official/cool-admin-vue.git
synced 2025-12-12 21:52:48 +00:00
优化
This commit is contained in:
parent
1944e41206
commit
0cec75dc6e
@ -43,11 +43,13 @@ export default defineComponent({
|
|||||||
|
|
||||||
// 值改变
|
// 值改变
|
||||||
function onChange(val: string) {
|
function onChange(val: string) {
|
||||||
emit("update:modelValue", val);
|
const v = val === "" ? undefined : val;
|
||||||
emit("change", val);
|
|
||||||
|
emit("update:modelValue", v);
|
||||||
|
emit("change", v);
|
||||||
|
|
||||||
if (props.prop) {
|
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