fix(media): 七牛对象存储 - 支持无绑定域名通过后端代理读取
This commit is contained in:
@@ -137,7 +137,7 @@ function resourceCacheKey(id: string) {
|
||||
|
||||
export function resourceFileUrl(id: string) {
|
||||
const base = String(apiBaseURL).replace(/\/+$/, "");
|
||||
return `${base}/resources/${encodeURIComponent(id)}/file?direct=1`;
|
||||
return `${base}/resources/${encodeURIComponent(id)}/file`;
|
||||
}
|
||||
|
||||
function resourceProxyFileUrl(id: string) {
|
||||
|
||||
Reference in New Issue
Block a user