fix: bug fix

This commit is contained in:
dataeaseShu
2025-07-24 17:33:48 +08:00
parent 679741d295
commit de46e6d4ed
+6 -2
View File
@@ -24,8 +24,12 @@ const workspaceForm = reactive({
name: '',
id: '',
})
const selectable = (row: any) => ![userStore.getUid].includes(row.id) && row.weight !== 1
const selectable = (row: any) => {
if (+userStore.getUid === 1) {
return true
}
return ![userStore.getUid].includes(row.id) && row.weight !== 1
}
onMounted(() => {
search()
})