Merge branch 'dev' into snow

# Conflicts:
#	backend/app/api/chat.py
#	backend/app/services/admin/permission_service.py
#	backend/app/services/knowledge_cleaning/dify_sync_service.py
#	backend/app/services/knowledge_cleaning/settings_service.py
#	backend/tests/test_dify_sync_process_rule.py
#	docker-compose.yml
#	docs/funclist.md
#	frontend/package-lock.json
#	frontend/src/config.ts
#	frontend/src/features/admin/components/AdminNav.vue
#	frontend/src/features/admin/constants/modules.ts
#	frontend/src/features/admin/stores/admin-nav.store.ts
#	frontend/src/features/chat/components/messages/ChatMessageBubble.vue
#	frontend/src/features/user/views/UserProfilePage.vue
#	frontend/src/locales/en/admin.json
#	frontend/src/locales/en/auth.json
#	frontend/src/locales/en/errors.json
#	frontend/src/locales/th/admin.json
#	frontend/src/locales/th/auth.json
#	frontend/src/locales/th/errors.json
#	frontend/src/locales/zh-CN/admin.json
#	frontend/src/locales/zh-CN/auth.json
#	frontend/src/locales/zh-CN/errors.json
#	frontend/src/locales/zh-TW/admin.json
#	frontend/src/locales/zh-TW/auth.json
#	frontend/src/locales/zh-TW/errors.json
This commit is contained in:
HTEWJ\26070045 committed 2026-09-11 14:55:20 +08:00
commit ca9c174f29
2050 files changed
+511839 -42320

No files matched your search

@@ -1,4 +1,4 @@
/**
/**
* features/admin/stores/admin-nav.store.ts
* 管理后台导航 UI 状态(侧栏折叠、报表/企微子菜单展开、角标)。
*
@@ -13,6 +13,17 @@ export const useAdminNavStore = defineStore('adminNav', () => {
const reportsExpanded = ref(false);
/** 企业微信子菜单:默认折叠 */
const wecomExpanded = ref(false);
/** 货代管理子菜单:默认折叠;父项点击仅展开/收起,子项负责导航 */
const shippingMenuExpanded = ref(false);
/** 「用户审批」导航角标:pending 注册用户数 */
const pendingApprovalsCount = ref(0);
/** 「权限申请」导航角标:pending 权限申请数 */
const pendingRequestsCount = ref(0);
/** 上次成功拉取 badges 的时间戳;0 表示尚未拉取 */
let badgesFetchedAt = 0;
/** 进行中的 badges 请求 Promise,用于并发调用合并为单次 HTTP */
let badgesInFlight: Promise<void> | null = null;
const toggleSidebar = (): void => {
sidebarCollapsed.value = !sidebarCollapsed.value;
@@ -22,6 +33,9 @@ export const useAdminNavStore = defineStore('adminNav', () => {
sidebarCollapsed,
reportsExpanded,
wecomExpanded,
shippingMenuExpanded,
pendingApprovalsCount,
pendingRequestsCount,
toggleSidebar,
};
});