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; };