diff --git a/client/data/config.json b/client/data/config.json index cf4c2dda4..ae5732e5f 100644 --- a/client/data/config.json +++ b/client/data/config.json @@ -1,18 +1,15 @@ { "FeConfig": { "show_emptyChat": true, - "show_register": true, + "show_register": false, "show_appStore": false, - "show_userDetail": true, + "show_userDetail": false, "show_git": true, "systemTitle": "FastAI", "authorText": "Made by FastAI Team." }, "SystemParams": { "beianText": "", - "baiduTongji": "", - "googleClientVerKey": "", - "googleServiceVerKey": "", "vectorMaxProcess": 15, "qaMaxProcess": 15, "pgIvfflatProbe": 20, diff --git a/client/src/pages/api/system/getInitData.ts b/client/src/pages/api/system/getInitData.ts index c1725646b..2de80228a 100644 --- a/client/src/pages/api/system/getInitData.ts +++ b/client/src/pages/api/system/getInitData.ts @@ -39,9 +39,9 @@ const defaultSystemEnv = { }; const defaultFeConfigs = { show_emptyChat: true, - show_register: true, + show_register: false, show_appStore: false, - show_userDetail: true, + show_userDetail: false, show_git: true, systemTitle: 'FastAI', authorText: 'Made by FastAI Team.' @@ -90,8 +90,9 @@ const defaultVectorModels = [ export async function getInitConfig() { try { - const filename = process.env.NODE_ENV === 'development' ? 'config.json.local' : 'config.json'; - const res = JSON.parse(readFileSync(`data/${filename}`, 'utf-8')); + const filename = + process.env.NODE_ENV === 'development' ? 'data/config.json.local' : '/app/data/config.json'; + const res = JSON.parse(readFileSync(filename, 'utf-8')); console.log(res); global.systemEnv = res.SystemParams || defaultSystemEnv; diff --git a/client/src/pages/api/user/sendAuthCode.ts b/client/src/pages/api/user/sendAuthCode.ts index c0a95ac23..e6a69b6f9 100644 --- a/client/src/pages/api/user/sendAuthCode.ts +++ b/client/src/pages/api/user/sendAuthCode.ts @@ -1,4 +1,3 @@ -// Next.js API route support: https://nextjs.org/docs/api-routes/introduction import type { NextApiRequest, NextApiResponse } from 'next'; import { jsonRes } from '@/service/response'; import { AuthCode } from '@/service/models/authCode'; diff --git a/client/src/pages/chat/components/SliderApps.tsx b/client/src/pages/chat/components/SliderApps.tsx index 8fe040a74..10a25da7a 100644 --- a/client/src/pages/chat/components/SliderApps.tsx +++ b/client/src/pages/chat/components/SliderApps.tsx @@ -23,7 +23,7 @@ const SliderApps = ({ appId }: { appId: string }) => { px={3} borderRadius={'md'} _hover={{ bg: 'myGray.200' }} - onClick={() => router.back()} + onClick={() => router.push('/app/list')} > { {!!errors.password && errors.password.message} - - setPageType('forgetPassword')} - fontSize="sm" - > - 忘记密码? - - {feConfigs?.show_register && ( + {feConfigs?.show_register && ( + + setPageType('forgetPassword')} + fontSize="sm" + > + 忘记密码? + { > 注册账号 - )} - + + )}