system接口增加版本号,应用权限增加依赖管理

This commit is contained in:
whyour 2021-12-21 22:53:19 +08:00
parent e001686627
commit 4d20bb0de6
2 changed files with 6 additions and 0 deletions

View File

@ -213,6 +213,7 @@ export default (app: Router) => {
const userService = Container.get(UserService); const userService = Container.get(UserService);
const authInfo = await userService.getUserInfo(); const authInfo = await userService.getUserInfo();
const envDbContent = getFileContentByName(config.envDbFile); const envDbContent = getFileContentByName(config.envDbFile);
const { version } = await import(config.versionFile);
let isInitialized = true; let isInitialized = true;
if ( if (
@ -227,6 +228,7 @@ export default (app: Router) => {
code: 200, code: 200,
data: { data: {
isInitialized, isInitialized,
version,
}, },
}); });
} catch (e) { } catch (e) {

View File

@ -55,6 +55,10 @@ export default {
name: '任务日志', name: '任务日志',
value: 'logs', value: 'logs',
}, },
{
name: '依赖管理',
value: 'dependencies',
},
], ],
scopesMap: { scopesMap: {
crons: '定时任务', crons: '定时任务',