This commit is contained in:
qsh
2024-07-10 17:58:08 +08:00
parent 18ed17b131
commit d31f4b4f8b
7 changed files with 140 additions and 89 deletions

View File

@@ -107,7 +107,14 @@ const dataScopeOptions = [
]
async function getRoleInfo(id) {
formData.value = await RoleApi.getRole(id)
try {
formData.value = await RoleApi.getRole(id)
nextTick(() => {
treeRef.value.setCheckedKeys(formData.value.dataScopeDeptIds)
})
} catch (error) {
console.log(error)
}
}
/** 提交表单 */