chore: sync

This commit is contained in:
2026-03-18 22:09:43 +08:00
parent 19d647c9e1
commit 091d1953e8
29 changed files with 564 additions and 1188 deletions

View File

@@ -36,3 +36,10 @@ export const getApiBaseUrl = () => {
};
export const getApiOrigin = () => stripApiSuffix(getApiBaseUrl());
export const isAbsoluteUrl = (value) => hasHttpProtocol(String(value || ''));
export const resolveMediaUrl = (value) => {
if (!value) return value;
return isAbsoluteUrl(value) ? value : `${getApiOrigin()}${value}`;
};