From 3166376173f0dddc485d89d467b36270e81161c4 Mon Sep 17 00:00:00 2001
From: archer <545436317@qq.com>
Date: Tue, 20 Jun 2023 10:40:49 +0800
Subject: [PATCH] fix: template
---
client/.env.template | 3 ++-
client/src/pages/_app.tsx | 4 +--
client/src/pages/api/system/getInitData.ts | 4 ++-
client/src/store/global.ts | 3 ++-
docs/dev/.env.template | 31 ----------------------
docs/dev/README.md | 3 +++
6 files changed, 12 insertions(+), 36 deletions(-)
delete mode 100644 docs/dev/.env.template
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 && (
<>