fix: Non-function value encountered for default slot

This commit is contained in:
dap 2024-09-23 08:22:52 +08:00
parent 05a08bff4f
commit c7ba5b4b1d

View File

@ -57,7 +57,7 @@ function genRoleOptionlabel(role: Role) {
}
return h('div', { class: 'flex items-center gap-[6px]' }, [
h('span', null, role.roleName),
h(Tag, { color: found.color }, found.label),
h(Tag, { color: found.color }, () => found.label),
]);
}