diff --git a/client/.env.template b/client/.env.template index 0ea936abb..1ceaa8716 100644 --- a/client/.env.template +++ b/client/.env.template @@ -1,6 +1,7 @@ # 运行端口,如果不是 3000 口运行,需要改成其他的。注意:不是改了这个变量就会变成其他端口,而是因为改成其他端口,才用这个变量。 -DB_MAX_LINK=15 # database max link PORT=3000 +# database max link +DB_MAX_LINK=15 # 代理 # AXIOS_PROXY_HOST=127.0.0.1 # AXIOS_PROXY_PORT=7890 diff --git a/client/src/pages/_app.tsx b/client/src/pages/_app.tsx index 42bdefe87..b0c9cbbed 100644 --- a/client/src/pages/_app.tsx +++ b/client/src/pages/_app.tsx @@ -31,7 +31,7 @@ const queryClient = new QueryClient({ function App({ Component, pageProps }: AppProps) { const { loadInitData, - initData: { googleVerKey } + initData: { googleVerKey, baiduTongji } } = useGlobalStore(); useEffect(() => { @@ -52,7 +52,7 @@ function App({ Component, pageProps }: AppProps) { - + {baiduTongji && } {googleVerKey && ( <>