# 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
83 lines
3.3 KiB
TypeScript
83 lines
3.3 KiB
TypeScript
/**
|
|
* config.ts
|
|
* 鐢ㄩ€旓細鍓嶇搴旂敤绾у紑鍏充笌榛樿閰嶇疆锛堢櫥褰曟ā寮忋€佸伐浣滃彴妯″潡銆佺鐞嗘ā鍧楀彲瑙佹€э級銆?
|
|
* 渚濊禆锛氭棤杩愯鏃朵緷璧栵紱搴旂敤鏍囬閫氳繃 common.app.title i18n key 瑙f瀽銆?
|
|
* 閫昏緫锛歮ain.ts / router guards 浣跨敤 i18n.t(config.appTitleKey) 璁剧疆 document.title銆?
|
|
*/
|
|
export const config = {
|
|
/** Browser title base name 鈥?resolve via i18n `t(config.appTitleKey)`. */
|
|
appTitleKey: 'common.app.title',
|
|
auth: {
|
|
// Login mode switch:
|
|
// - 'casdoor': submit username/password to backend Casdoor password-login API.
|
|
// - 'password': submit to legacy local /api/user/login.
|
|
loginMode: 'casdoor',
|
|
casdoor: {
|
|
enabled: true,
|
|
authorizeApi: '/api/user/casdoor/authorize-url',
|
|
loginApi: '/api/user/casdoor/login',
|
|
passwordLoginApi: '/api/user/casdoor/password-login',
|
|
refreshApi: '/api/user/casdoor/refresh',
|
|
callbackPath: '/casdoor-callback',
|
|
// Casdoor Provider銆孨ame銆嶅瓧娈甸』涓€鑷达紙褰撳墠 IdP锛歸ecom锛夈€傜暀绌哄垯浠呯敤鍚庣 CASDOOR_WECOM_PROVIDER_HINT銆?
|
|
wecomProviderHint: 'wecom',
|
|
},
|
|
wecom: {
|
|
enabled: true,
|
|
// true: login button uses Casdoor OAuth (WeCom as Casdoor provider). false: legacy /api/user/wecom/* OAuth.
|
|
loginViaCasdoor: true,
|
|
authorizeApi: '/api/user/wecom/authorize-url',
|
|
loginApi: '/api/user/wecom/login',
|
|
completeBindApi: '/api/user/wecom/complete-bind',
|
|
callbackPath: '/workspace',
|
|
deeplinkTraceApi: '/api/user/wecom/deeplink-opened',
|
|
taskCompleteApi: '/api/user/wecom/task-complete'
|
|
}
|
|
},
|
|
workspace: {
|
|
// true 鏄剧ず璇勫垎鍖猴紱false 闅愯棌璇勫垎鍖?
|
|
showChatRating: true,
|
|
// 鑱婂ぉ绐楀彛鈥滄簮鏂囦欢灞曠ず鈥濆紑鍏抽厤缃?
|
|
sourceFiles: {
|
|
// 鏄惁鏄剧ず婧愭枃浠跺尯鍩燂紙鍖呭惈涓婃柟鏂囦欢鎸夐挳 + 涓嬫柟鈥滄簮鏂囨。鈥濊鎯咃級
|
|
showSourceFiles: true,
|
|
// 鏄惁鏄剧ず MD 婧愭枃浠讹紙鏂囦欢鍚嶅悗缂€涓?.md/.markdown锛?
|
|
showMdFiles: false,
|
|
// 褰?showMdFiles=true 鏃讹紝MD 婧愭枃浠舵槸鍚﹂粯璁ゅ睍寮€鈥滄簮鏂囨。鈥濊鎯?
|
|
expandMdByDefault: false,
|
|
},
|
|
modules: {
|
|
announcements: true,
|
|
favorites: true,
|
|
quickQuestions: false,
|
|
embedded: false,
|
|
allAgents: true
|
|
}
|
|
},
|
|
admin: {
|
|
modules: {
|
|
dashboard: true, // 仪表盘
|
|
users: true, // 用户管理
|
|
departments: true, // 部门管理
|
|
agents: true, // 应用管理
|
|
knowledge_base: true, // 知识库管理
|
|
announcements: true, // 公告管理
|
|
questions: true, // 常用问题
|
|
permissions: true, // 应用权限
|
|
platform_apps: true, // 平台应用说明
|
|
requests: false, // 权限审批功能已移除
|
|
reports: true, //数据报表
|
|
schedules: true, // 定时任务
|
|
wecom: true, // 企业微信
|
|
linked_services: true, // 关联服务(侧栏跳转入口)
|
|
shipping_inventory: true, // 货代配置
|
|
procurement_contract: true, // 采购合同审查(模板库 + 历史)
|
|
training_config: true,
|
|
integration_connector: true, // 集成连接器配置
|
|
}
|
|
}
|
|
};
|
|
|
|
|
|
|