重构首页为机构落地页,新增终端路由,时区感知 Polymarket 市场发现

This commit is contained in:
2569718930@qq.com
2026-05-25 00:16:53 +08:00
parent 45e9c28437
commit e4d123d94d
23 changed files with 1232 additions and 623 deletions
+2 -1
View File
@@ -54,9 +54,10 @@ export function getAnalyticsSessionId() {
export function markAnalyticsOnce(key: string, scope: "local" | "session" = "session") {
if (!isClient()) return false;
const storage = scope === "local" ? window.localStorage : window.sessionStorage;
const normalizedKey = `polyweather:analytics:once:${key}`;
try {
const storage = scope === "local" ? window.localStorage : window.sessionStorage;
if (!storage) return true;
if (storage.getItem(normalizedKey) === "1") {
return false;
}