diff --git a/frontend/src/views/system/user/form.vue b/frontend/src/views/system/user/form.vue
index 8e8263e1ff..7a52313e18 100644
--- a/frontend/src/views/system/user/form.vue
+++ b/frontend/src/views/system/user/form.vue
@@ -28,11 +28,13 @@
@@ -257,6 +259,15 @@ export default {
},
backToList() {
this.$router.push({ name: '用户管理' })
+ },
+ testOpen(instanceId) {
+ const results = this.depts.map(node => {
+ if (node.hasChildren) {
+ node.children = null
+ }
+ return node
+ })
+ this.depts = results
}
}
}