From bc5e260516a0e000c63b6e114a0f6f2073071194 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=95=8A=E5=B9=B3?= <951984189@qq.com> Date: Tue, 12 Jan 2021 10:37:46 +0800 Subject: [PATCH] 111 --- src/app/view/welcome.html | 18 ++++++++++++++++++ src/config/config.default.ts | 5 +++++ 2 files changed, 23 insertions(+) create mode 100644 src/app/view/welcome.html diff --git a/src/app/view/welcome.html b/src/app/view/welcome.html new file mode 100644 index 0000000..3aeb223 --- /dev/null +++ b/src/app/view/welcome.html @@ -0,0 +1,18 @@ + + + + + + + + COOL-AMIND 通用后台管理系统 + + + + + +
{{text}}
+ + + + diff --git a/src/config/config.default.ts b/src/config/config.default.ts index fb86f18..297f931 100644 --- a/src/config/config.default.ts +++ b/src/config/config.default.ts @@ -1,4 +1,5 @@ import { EggAppConfig, EggAppInfo, PowerPartial } from 'egg'; +import * as path from 'path'; export type DefaultConfig = PowerPartial; @@ -11,5 +12,9 @@ export default (appInfo: EggAppInfo) => { // add your config here config.middleware = []; + config.view = { + root: path.join(appInfo.baseDir, 'view'), + } + return config; };