mirror of
https://github.com/cool-team-official/cool-admin-vue.git
synced 2026-02-23 05:00:27 +00:00
优化
This commit is contained in:
parent
9919390e32
commit
e3cd18d991
@ -60,6 +60,7 @@ export default defineComponent({
|
|||||||
function onChange(val: boolean | string | number) {
|
function onChange(val: boolean | string | number) {
|
||||||
if (props.column && props.scope) {
|
if (props.column && props.scope) {
|
||||||
if (val !== undefined) {
|
if (val !== undefined) {
|
||||||
|
if (val === activeValue.value || val === inactiveValue.value) {
|
||||||
const params = {
|
const params = {
|
||||||
id: props.scope.id,
|
id: props.scope.id,
|
||||||
[props.column.property]: val
|
[props.column.property]: val
|
||||||
@ -79,6 +80,7 @@ export default defineComponent({
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
emit("update:modelValue", val);
|
emit("update:modelValue", val);
|
||||||
emit("change", val);
|
emit("change", val);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user