diff --git a/src/app.scss b/src/app.scss index 44e4d57..0a2f61b 100644 --- a/src/app.scss +++ b/src/app.scss @@ -20,6 +20,6 @@ page { @font-face { font-family: "Quicksand"; // 注意:此路径对应 @/config/api.ts 中的 OSS_BASE - src: url("https://bimwe-oss.oss-cn-shanghai.aliyuncs.com/front/ball/other/57dc951f-f10e-45b7-9157-0b1e468187fd.ttf") format("truetype"); + src: url("https://bimwe.oss-cn-shanghai.aliyuncs.com/front/ball/other/57dc951f-f10e-45b7-9157-0b1e468187fd.ttf") format("truetype"); font-display: swap; } \ No newline at end of file diff --git a/src/config/api.ts b/src/config/api.ts index 113ef40..9c86452 100644 --- a/src/config/api.ts +++ b/src/config/api.ts @@ -1,10 +1,10 @@ import envConfig from './env'// API配置 // OSS 配置:仅域名,调用处拼接 /front/ball 及后续路径 -export const OSS_BASE = "https://bimwe-oss.oss-cn-shanghai.aliyuncs.com"; +// export const OSS_BASE = "https://bimwe-oss.oss-cn-shanghai.aliyuncs.com"; // 因乐驰OSS 配置:仅域名,调用处拼接 /front/ball 及后续路径 -// export const OSS_BASE = "https://youchang2026.oss-cn-shanghai.aliyuncs.com"; +export const OSS_BASE = envConfig.ossBaseURL; export const API_CONFIG = { // 基础URL