fix: 立账凭证发票号取oma75; 优化前端懒加载

This commit is contained in:
sophie committed 2026-09-19 15:38:30 +08:00
1 parent 0e4e581f9a
commit d7d1ad522a
22 files changed
+245 -54

No files matched your search

+5 -2
View File
@@ -1,8 +1,9 @@
/**
* main.ts
* 用途:Vue 应用启动入口(pinia / router / i18n / 401 fetch 包装)。
* 依赖:App.vue、router、i18n、config、auth sync、agentTabs。
* 逻辑:挂载前设置 document.title;包装 fetch 以刷新 token;仅会话类 401 才派发未授权事件。
* 依赖:App.vue、router、i18n、config、auth sync、agentTabs、chunkLoadRecovery。
* 逻辑:挂载前设置 document.title;包装 fetch 以刷新 token;仅会话类 401 才派发未授权事件;
* 监听 vite:preloadError,部署后旧 hash 分包 404 时刷新一次(含 Chat 懒加载作业面)。
*/
import { createApp } from 'vue';
import './style.css';
@@ -14,9 +15,11 @@ import { pinia } from './app/plugins/pinia';
import { bindAuthStoreSync } from './features/auth/stores/auth.store';
import { refreshAccessToken, getAuthToken, initAuthSync, isSessionUnauthorizedError } from '@/shared/utils/auth';
import { initAgentTabSync } from '@/shared/utils/agentTabs';
import { setupVitePreloadErrorRecovery } from '@/shared/utils/chunkLoadRecovery';
initAuthSync();
initAgentTabSync();
setupVitePreloadErrorRecovery();
document.title = String(i18n.global.t(config.appTitleKey));
/**