feat:临时隐藏登录入口,修复当日盈亏的显示问题

This commit is contained in:
hzm
2026-02-07 00:22:21 +08:00
parent 30f34d2cff
commit 1cb590beee
4 changed files with 447 additions and 53 deletions

View File

@@ -1,10 +1,10 @@
'use client';
import { useLayoutEffect, useState } from 'react';
import { useEffect, useState } from 'react';
import Script from 'next/script';
export default function AnalyticsGate({ GA_ID }) {
const [enabled, setEnabled] = useState(false);
useLayoutEffect(() => {
useEffect(() => {
try {
const href = window.location.href || '';
setEnabled(href.includes('hzm0321'));