fix: 优化报销创建页面样式与洞察面板交互

修复侧边栏和审计视图样式细节,完善差旅报销洞察面板和消息
组件布局,优化报销创建页面会话管理和流程状态持久化,增强
申请预览工具函数和导航图标,补充单元测试。
This commit is contained in:
caoxiaozhu
2026-05-27 10:32:08 +08:00
parent 2dcc72102d
commit b1a9c8a194
21 changed files with 922 additions and 148 deletions

View File

@@ -110,7 +110,13 @@ const router = createRouter({
]
})
router.beforeEach((to) => {
router.beforeEach((to, from) => {
if (to.name === 'app-documents' && from.name !== 'app-document-detail') {
if (typeof window !== 'undefined' && window.localStorage) {
window.localStorage.removeItem('x-financial.documents.scope')
}
}
const { currentUser, isInitialized, loggedIn, resolveEntryRoute, syncAuthSession } = useSystemState()
const authActive = syncAuthSession({ notify: Boolean(to.meta.requiresAuth) })