import { ref, reactive, getCurrentInstance, onMounted, nextTick } from "vue"; const { proxy } = getCurrentInstance(); const props = defineProps({ modelValue: { type: [Number,String], }, type: { type: Number, }, }); const api = { loadCategory: "/category/loadAllCategory4Select", }; const categoryList = ref([]); const loadCategory = async () => { let result = await proxy.Request({ url: api.loadCategory, params: { type: props.type, }, }); if (!result) { return; } categoryList.value = result.data; }; loadCategory(); const emit = defineEmits(["update:modelValue", "change"]); const onChange = (e) => { emit("update:modelValue", e); emit("change"); }; 进行修改操作的时候 修改的值没有实时改变,该怎么做呢? 进行修改操作的时候 修改的值没有实时改变,该怎么做呢?