写法1
import { defineAsyncComponent, ref, reactive, onMounted, nextTick, computed, watch } from 'vue';
// 页面加载时
onMounted(() => {
initResize();
});
// 监听双向绑定 modelValue 的变化
watch(
() => props.modelValue,
() => {
initModeValueEcho();
initFontIconName();
}
);