refactor(background): enhance BackgroundTask and VisualRecognitionTaskProcessor structure and logging

This commit is contained in:
shiyu
2025-06-08 16:48:47 +08:00
parent d46b87449c
commit 4ef4b2056b
8 changed files with 108 additions and 84 deletions

View File

@@ -289,13 +289,13 @@ const ConfigTabs: React.FC<ConfigTabsProps> = ({
isMobile={isMobile}
>
<Form form={formsMap.AppSettings} layout="vertical" size={isMobile ? "middle" : "large"}>
{renderConfigFormItems(formsMap.AppSettings, "AppSettings", ['ServerUrl'])}
{renderConfigFormItems(formsMap.AppSettings, "AppSettings", ['ServerUrl', 'MaxConcurrentTasks'])}
<Divider style={{ margin: '12px 0 20px' }} />
<Form.Item style={{ marginBottom: 0, textAlign: 'center' }}>
<Button
type="primary"
icon={<SaveOutlined />}
onClick={() => onSaveAllForGroup(formsMap.AppSettings, "AppSettings", ['ServerUrl'])}
onClick={() => onSaveAllForGroup(formsMap.AppSettings, "AppSettings", ['ServerUrl', 'MaxConcurrentTasks'])}
style={{ width: isMobile ? '100%' : '240px' }}
>

View File

@@ -43,7 +43,8 @@ const allDescriptions: Record<string, Record<string, string>> = {
LinuxDoCallbackUrl: 'LinuxDo OAuth 认证回调地址'
},
AppSettings: {
ServerUrl: '服务器URL'
ServerUrl: '服务器URL',
MaxConcurrentTasks: '后台任务最大并发处理数量 (例如: 图像分析、标签生成等)'
},
Storage: {
DefaultStorage: '已登录用户上传文件时的默认存储位置',