From 7e9cac3478d3912415a0aa0545fb20cf4985e718 Mon Sep 17 00:00:00 2001
From: archer <545436317@qq.com>
Date: Mon, 28 Aug 2023 21:43:15 +0800
Subject: [PATCH] feat: config login tip
---
client/data/config.json | 1 +
client/src/pages/login/index.tsx | 2 +-
client/src/store/global.ts | 2 +-
client/src/types/index.d.ts | 1 +
4 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/client/data/config.json b/client/data/config.json
index d43504f8d..14b7aeb60 100644
--- a/client/data/config.json
+++ b/client/data/config.json
@@ -4,6 +4,7 @@
"show_register": false,
"show_appStore": false,
"show_userDetail": false,
+ "show_loginTip": false,
"show_git": true,
"systemTitle": "FastGPT",
"authorText": "Made by FastGPT Team.",
diff --git a/client/src/pages/login/index.tsx b/client/src/pages/login/index.tsx
index 33078548e..257e80b4c 100644
--- a/client/src/pages/login/index.tsx
+++ b/client/src/pages/login/index.tsx
@@ -99,7 +99,7 @@ const Login = () => {
>
- {feConfigs?.show_register && (
+ {feConfigs?.show_loginTip && (
()(
state.isPc = val;
});
},
- gitStar: 2700,
+ gitStar: 3700,
async loadGitStar() {
try {
const { data: git } = await axios.get('https://api.github.com/repos/labring/FastGPT');
diff --git a/client/src/types/index.d.ts b/client/src/types/index.d.ts
index fa592c369..a0ebed2b9 100644
--- a/client/src/types/index.d.ts
+++ b/client/src/types/index.d.ts
@@ -19,6 +19,7 @@ export type FeConfigsType = {
show_register?: boolean;
show_appStore?: boolean;
show_userDetail?: boolean;
+ show_loginTip?: boolean;
show_git?: boolean;
systemTitle?: string;
authorText?: string;