mirror of
https://github.com/labring/FastGPT.git
synced 2025-10-17 16:45:02 +00:00
feat: config login tip
This commit is contained in:
@@ -4,6 +4,7 @@
|
|||||||
"show_register": false,
|
"show_register": false,
|
||||||
"show_appStore": false,
|
"show_appStore": false,
|
||||||
"show_userDetail": false,
|
"show_userDetail": false,
|
||||||
|
"show_loginTip": false,
|
||||||
"show_git": true,
|
"show_git": true,
|
||||||
"systemTitle": "FastGPT",
|
"systemTitle": "FastGPT",
|
||||||
"authorText": "Made by FastGPT Team.",
|
"authorText": "Made by FastGPT Team.",
|
||||||
|
@@ -99,7 +99,7 @@ const Login = () => {
|
|||||||
>
|
>
|
||||||
<DynamicComponent type={pageType} />
|
<DynamicComponent type={pageType} />
|
||||||
|
|
||||||
{feConfigs?.show_register && (
|
{feConfigs?.show_loginTip && (
|
||||||
<Box
|
<Box
|
||||||
fontSize={'sm'}
|
fontSize={'sm'}
|
||||||
color={'myGray.600'}
|
color={'myGray.600'}
|
||||||
|
@@ -50,7 +50,7 @@ export const useGlobalStore = create<State>()(
|
|||||||
state.isPc = val;
|
state.isPc = val;
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
gitStar: 2700,
|
gitStar: 3700,
|
||||||
async loadGitStar() {
|
async loadGitStar() {
|
||||||
try {
|
try {
|
||||||
const { data: git } = await axios.get('https://api.github.com/repos/labring/FastGPT');
|
const { data: git } = await axios.get('https://api.github.com/repos/labring/FastGPT');
|
||||||
|
1
client/src/types/index.d.ts
vendored
1
client/src/types/index.d.ts
vendored
@@ -19,6 +19,7 @@ export type FeConfigsType = {
|
|||||||
show_register?: boolean;
|
show_register?: boolean;
|
||||||
show_appStore?: boolean;
|
show_appStore?: boolean;
|
||||||
show_userDetail?: boolean;
|
show_userDetail?: boolean;
|
||||||
|
show_loginTip?: boolean;
|
||||||
show_git?: boolean;
|
show_git?: boolean;
|
||||||
systemTitle?: string;
|
systemTitle?: string;
|
||||||
authorText?: string;
|
authorText?: string;
|
||||||
|
Reference in New Issue
Block a user