fix: bug
All checks were successful
构建并部署前端到测试环境 / build-and-deploy (push) Successful in 2m27s

This commit is contained in:
sexygoat
2026-04-11 16:51:54 +08:00
parent 33e15314ac
commit 4f02d6faf0
25 changed files with 387 additions and 317 deletions

View File

@@ -150,6 +150,7 @@
:icon="'ArrowRight'"
@click="addPermissions"
:disabled="getLeftCheckedKeys().length === 0"
:loading="addingPermissionLoading"
>
添加
</ElButton>
@@ -245,6 +246,7 @@
const permissionDialogVisible = ref(false)
const loading = ref(false)
const submitLoading = ref(false)
const addingPermissionLoading = ref(false)
const tableRef = ref()
const leftTreeRef = ref()
const rightTreeRef = ref()
@@ -799,6 +801,7 @@
const checkedKeys = getLeftCheckedKeys()
if (checkedKeys.length === 0) return
addingPermissionLoading.value = true
try {
// 提交到服务器时包含勾选和半选节点
const keysToSubmit = getLeftCheckedKeysWithHalf()
@@ -826,6 +829,8 @@
ElMessage.success('权限添加成功')
} catch (error) {
console.error('添加权限失败:', error)
} finally {
addingPermissionLoading.value = false
}
}