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
+2
View File
@@ -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) {