mirror of
https://github.com/labring/FastGPT.git
synced 2025-08-01 03:48:24 +00:00
@@ -73,8 +73,9 @@ export const useSystemStore = create<State>()(
|
||||
return null;
|
||||
},
|
||||
|
||||
gitStar: 9300,
|
||||
gitStar: 15600,
|
||||
async loadGitStar() {
|
||||
if (!get().feConfigs?.show_git) return;
|
||||
try {
|
||||
const { data: git } = await axios.get('https://api.github.com/repos/labring/FastGPT');
|
||||
|
||||
|
@@ -18,7 +18,7 @@ export const useInitApp = () => {
|
||||
|
||||
const initFetch = useMemoizedFn(async () => {
|
||||
const {
|
||||
feConfigs: { scripts, isPlus, show_git, systemTitle }
|
||||
feConfigs: { scripts, isPlus, systemTitle }
|
||||
} = await clientInitData();
|
||||
|
||||
setTitle(systemTitle || 'FastGPT');
|
||||
@@ -31,9 +31,8 @@ export const useInitApp = () => {
|
||||
`GitHub:https://github.com/labring/FastGPT`
|
||||
);
|
||||
}
|
||||
if (show_git) {
|
||||
loadGitStar();
|
||||
}
|
||||
|
||||
loadGitStar();
|
||||
|
||||
setScripts(scripts || []);
|
||||
setInitd();
|
||||
|
Reference in New Issue
Block a user