mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
core&ui: add setting provider
This commit is contained in:
10 files changed
+56
-28
No files matched your search
@@ -146,7 +146,7 @@ export class HomeHandler extends Handler {
|
||||
}
|
||||
|
||||
async get({ domainId }) {
|
||||
const homepageConfig = this.domain.homepage || system.get('hydrooj.homepage');
|
||||
const homepageConfig = this.ctx.setting.get('hydrooj.homepage');
|
||||
const info = yaml.load(homepageConfig) as any;
|
||||
const contents = [];
|
||||
for (const column of info) {
|
||||
|
||||
Reference in new issue
Block a user