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 || []) {