Files

11 lines
363 B
TypeScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/**
* 启动时预取「已看过的引导漫游」标记(存服务端 app_settings)。
* 不 await:autoTour 在各页面 onMounted 后延迟数百 ms 触发,水合早已完成;
* 失败时 useTour 自动回退 localStorage。
*/
import { hydrateTours } from '~/composables/useTour'
export default defineNuxtPlugin(() => {
void hydrateTours()
})