From cb030061658f10ae3f08f7cf70b97c4a4937558f Mon Sep 17 00:00:00 2001 From: yourname Date: Tue, 13 May 2025 12:02:09 +0000 Subject: [PATCH 1/2] =?UTF-8?q?=E8=B0=83=E6=95=B4=E9=A1=BA=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/mobile/api/index.ts | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/client/mobile/api/index.ts b/client/mobile/api/index.ts index ede55d8..b6151c1 100644 --- a/client/mobile/api/index.ts +++ b/client/mobile/api/index.ts @@ -5,6 +5,15 @@ const API_BASE_URL = '/api'; // 全局axios配置 axios.defaults.baseURL = API_BASE_URL; +// 获取OSS完整URL +export const getOssUrl = (path: string): string => { + // 获取全局配置中的OSS_HOST,如果不存在使用默认值 + const ossHost = (window.CONFIG?.OSS_BASE_URL) || ''; + // 确保path不以/开头 + const ossPath = path.startsWith('/') ? path.substring(1) : path; + return `${ossHost}/${ossPath}`; +}; + export * from './auth.ts'; export * from './user.ts'; export * from './file.ts'; @@ -14,12 +23,3 @@ export * from './home.ts'; export * from './map.ts'; export * from './system.ts'; export * from './message.ts'; - -// 获取OSS完整URL -export const getOssUrl = (path: string): string => { - // 获取全局配置中的OSS_HOST,如果不存在使用默认值 - const ossHost = (window.CONFIG?.OSS_BASE_URL) || ''; - // 确保path不以/开头 - const ossPath = path.startsWith('/') ? path.substring(1) : path; - return `${ossHost}/${ossPath}`; -}; \ No newline at end of file From 641bccfe2e0a070b61600d5673b3a78f76a5fa26 Mon Sep 17 00:00:00 2001 From: yourname Date: Tue, 13 May 2025 12:10:28 +0000 Subject: [PATCH 2/2] =?UTF-8?q?=E8=BF=81=E7=A7=BB=E6=97=B6=E9=97=B4?= =?UTF-8?q?=E5=AD=97=E6=AE=B5=E5=BA=94=E4=B8=BA=20migration=5Ftime?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/migrations/migrations_app.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/client/migrations/migrations_app.tsx b/client/migrations/migrations_app.tsx index 8a98f46..a0faffe 100644 --- a/client/migrations/migrations_app.tsx +++ b/client/migrations/migrations_app.tsx @@ -82,9 +82,9 @@ const MigrationsApp: React.FC = () => { }, { title: '时间', - dataIndex: 'timestamp', - key: 'timestamp', - render: (timestamp: string) => dayjs(timestamp).format('YYYY-MM-DD HH:mm:ss') + dataIndex: 'migration_time', + key: 'migration_time', + render: (migration_time: string) => dayjs(migration_time).format('YYYY-MM-DD HH:mm:ss') }, ];