fix(api): finalize frontend contract integration
This commit is contained in:
@@ -30,7 +30,7 @@ export class ApiError extends Error {
|
||||
}
|
||||
}
|
||||
|
||||
let configuredBaseUrl = normalizeBaseUrl(import.meta.env.VITE_API_BASE_URL ?? 'http://127.0.0.1:18080')
|
||||
let configuredBaseUrl = normalizeBaseUrl(import.meta.env.VITE_API_BASE_URL ?? 'http://localhost:9150')
|
||||
|
||||
export function setApiBaseUrl(baseUrl: string) {
|
||||
configuredBaseUrl = normalizeBaseUrl(baseUrl)
|
||||
|
||||
@@ -95,7 +95,7 @@ function channelLabel(channel: WorkspaceChannelDTO) {
|
||||
case 'tasks':
|
||||
return '工作计划'
|
||||
case 'ai_sessions':
|
||||
return 'AI智能体'
|
||||
return 'AI 助手'
|
||||
case 'notes_sources':
|
||||
return '笔记资料'
|
||||
case 'cron':
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { useEffect, useState } from 'react'
|
||||
import { Button, Dropdown, Input, Layout, List, Space, Typography } from '@arco-design/web-react'
|
||||
import { IconApps, IconMoon, IconSearch, IconSun } from '@arco-design/web-react/icon'
|
||||
import { IconMoon, IconSearch, IconSun } from '@arco-design/web-react/icon'
|
||||
import type { SearchResultDTO } from '../../api/search'
|
||||
import type { Theme } from './project-types'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user