From 1c4d2e92cf9cb4449eafff42a08c38c056f631f2 Mon Sep 17 00:00:00 2001 From: archer <545436317@qq.com> Date: Thu, 27 Jul 2023 12:14:03 +0800 Subject: [PATCH] fix: init data --- client/src/pages/api/system/getInitData.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/pages/api/system/getInitData.ts b/client/src/pages/api/system/getInitData.ts index 4f08c2178..1cd55dafb 100644 --- a/client/src/pages/api/system/getInitData.ts +++ b/client/src/pages/api/system/getInitData.ts @@ -101,7 +101,7 @@ export async function getInitConfig() { global.vectorModels = res.VectorModels || defaultVectorModels; } catch (error) { setDefaultData(); - return Promise.reject('get init config error'); + console.log('get init config error, set default'); } }