1 main.ts
const app = createApp(App);
app.config.globalProperties.$delayTime = 1000; //定义延迟时间变量
2 vue中使用
const $delayTime = getCurrentInstance()?.appContext.config.globalProperties.$delayTime
throttle(() => {
saveConent(params);
},$delayTime) //使用全局变量