Update SproutGate

This commit is contained in:
2026-05-13 12:19:36 +08:00
parent f7db8aa053
commit a37b92e144
51 changed files with 12034 additions and 254 deletions

View File

@@ -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`;