From 4d20bb0de6ad75e547aa014ccbe9849da9120c4b Mon Sep 17 00:00:00 2001 From: whyour Date: Tue, 21 Dec 2021 22:53:19 +0800 Subject: [PATCH] =?UTF-8?q?system=E6=8E=A5=E5=8F=A3=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E7=89=88=E6=9C=AC=E5=8F=B7=EF=BC=8C=E5=BA=94=E7=94=A8=E6=9D=83?= =?UTF-8?q?=E9=99=90=E5=A2=9E=E5=8A=A0=E4=BE=9D=E8=B5=96=E7=AE=A1=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- back/api/user.ts | 2 ++ src/utils/config.ts | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/back/api/user.ts b/back/api/user.ts index 6474a181..4a87ff81 100644 --- a/back/api/user.ts +++ b/back/api/user.ts @@ -213,6 +213,7 @@ export default (app: Router) => { const userService = Container.get(UserService); const authInfo = await userService.getUserInfo(); const envDbContent = getFileContentByName(config.envDbFile); + const { version } = await import(config.versionFile); let isInitialized = true; if ( @@ -227,6 +228,7 @@ export default (app: Router) => { code: 200, data: { isInitialized, + version, }, }); } catch (e) { diff --git a/src/utils/config.ts b/src/utils/config.ts index 4c0c28a4..9d5c7e92 100644 --- a/src/utils/config.ts +++ b/src/utils/config.ts @@ -55,6 +55,10 @@ export default { name: '任务日志', value: 'logs', }, + { + name: '依赖管理', + value: 'dependencies', + }, ], scopesMap: { crons: '定时任务',