Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: plugin-admin 新建权限组之后 权限管理界面报错 #289

Closed
502647092 opened this issue Jan 12, 2024 · 0 comments
Closed

Bug: plugin-admin 新建权限组之后 权限管理界面报错 #289

502647092 opened this issue Jan 12, 2024 · 0 comments

Comments

@502647092
Copy link

image
image
排查到的代码

const permissions = computed(() => {
return data[active.value.type][active.value.id].permissions
})
const renameItem = debounce(1000, (type: 'group' | 'track', id: number, name: string) => {
send(`admin/rename-${type}`, id, name)
})
const renameInput = computed<string>({
get() {
return data[active.value.type][active.value.id].name
},
set(value) {
data[active.value.type][active.value.id].name = value
renameItem(active.value.type, +active.value.id, value)
},
})

应该是 data[active.value.type]undefined 导致的问题

@502647092 502647092 changed the title BugL plugin-admin 新建权限组之后 权限管理界面报错 Bug: plugin-admin 新建权限组之后 权限管理界面报错 Jan 12, 2024
@shigma shigma closed this as completed in 1401bb9 Jan 13, 2024
CyanChanges pushed a commit to CyanForks/webui that referenced this issue Feb 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant