ui: fix legacy setting render

This commit is contained in:
undefined committed 2025-05-07 23:56:01 +08:00
1 parent 7e2f3c083a
commit 332952b4af
2 files changed
+3 -2

No files matched your search

+2 -1
View File
@@ -90,7 +90,8 @@ function schemaToSettings(schema: Schema<any>) {
| (s.meta?.disabled ? FLAG_DISABLED : 0);
const type = s.type === 'number' ? 'number'
: s.type === 'boolean' ? 'checkbox'
: s.meta?.role === 'textarea' ? 'textarea' : 'text';
: s.meta?.role === 'markdown' ? 'markdown'
: s.meta?.role === 'textarea' ? 'textarea' : 'text';
if (s.meta?.role === 'password') flag |= FLAG_SECRET;
const options = {};
for (const item of s.list || []) {
+1 -1
View File
@@ -176,7 +176,7 @@ export function apply(ctx: Context) {
);
c.setting.SystemSetting(Schema.object({
'ui-default': Schema.object({
footer_extra_html: Schema.string().default(''),
footer_extra_html: Schema.string().role('textarea').default(''),
nav_logo_dark: Schema.string().default('/components/navigation/nav-logo-small_dark.png'),
preload: Schema.string().default(''),
domainNavigation: Schema.boolean().default(true).description('Show Domain Navigation'),