Update SproutGate
This commit is contained in:
@@ -9,6 +9,12 @@ export const API_BASE = (() => {
|
||||
return (configuredBase || fallbackBase).replace(/\/+$/, "");
|
||||
})();
|
||||
|
||||
/** OAuth 成功回跳:当前页(不含 # fragment),与后端 `allowedReturnPrefixes` 白名单配合 */
|
||||
export function getOAuthReturnTo() {
|
||||
if (typeof window === "undefined") return "";
|
||||
return `${window.location.origin}${window.location.pathname}${window.location.search}`;
|
||||
}
|
||||
|
||||
/** `public/logo192.png`,含 Vite `base` 前缀,避免子路径部署时顶栏/开屏裂图 */
|
||||
export const LOGO_192_SRC = `${import.meta.env.BASE_URL}logo192.png`;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user