bug: 🐛 fixed build bug
All checks were successful
Release / lint (push) Successful in 59s
Release / Release (push) Successful in 1m54s

This commit is contained in:
my_ong 2025-03-15 13:04:40 +08:00
parent df572949f3
commit 21f10b6e88
5 changed files with 4 additions and 5 deletions

1
src/components.d.ts vendored
View File

@ -11,7 +11,6 @@ declare module 'vue' {
AAvatar: typeof import('ant-design-vue/es')['Avatar']
AButton: typeof import('ant-design-vue/es')['Button']
ACard: typeof import('ant-design-vue/es')['Card']
ACascader: typeof import('ant-design-vue/es')['Cascader']
ACol: typeof import('ant-design-vue/es')['Col']
AConfigProvider: typeof import('ant-design-vue/es')['ConfigProvider']
ADatePicker: typeof import('ant-design-vue/es')['DatePicker']

View File

@ -40,7 +40,7 @@
watch(
roles,
(newVal: acl.RoleInfo[]) => {
targetKeys.value = newVal.filter((item) => item.selected).map((item) => item.key)
targetKeys.value = newVal.filter((item) => item.selected).map((item) => item.key as string)
},
{ immediate: true, deep: true },
)

View File

@ -173,7 +173,7 @@
const tryLoadPermissions = (expanded: boolean, record: acl.Role & { permissions?: acl.Permission[] }) => {
if (expanded && !record.permissions) {
api.aclApi.role.permissions(record.key, (data) => {
api.aclApi.role.permissions(record.key as unknown as string, (data) => {
record.permissions = data
})
}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long