feat: config login tip

This commit is contained in:
archer
2023-08-28 21:43:15 +08:00
parent be937956af
commit 7e9cac3478
4 changed files with 4 additions and 2 deletions

View File

@@ -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.",

View File

@@ -99,7 +99,7 @@ const Login = () => {
>
<DynamicComponent type={pageType} />
{feConfigs?.show_register && (
{feConfigs?.show_loginTip && (
<Box
fontSize={'sm'}
color={'myGray.600'}

View File

@@ -50,7 +50,7 @@ export const useGlobalStore = create<State>()(
state.isPc = val;
});
},
gitStar: 2700,
gitStar: 3700,
async loadGitStar() {
try {
const { data: git } = await axios.get('https://api.github.com/repos/labring/FastGPT');

View File

@@ -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;