src/main.js
@@ -17,9 +17,12 @@ const app = createApp(App) const title = import.meta.env.VITE_APP__TITLE // 安全获取环境变量,避免 undefined const title = import.meta.env.VITE_APP__TITLE || '' app.config.globalProperties.$title = title document.title = title if (title) { document.title = title } app.use(fxHeader) app.use(i18n) app.use(router)