Skip to content

Commit 6203744

Browse files
moon6967gitee-org
authored andcommitted
修复权限范围默认展开,deptExpand 却默认折叠的问题
Signed-off-by: moon69 <1016830869@qq.com>
1 parent a0ce1f3 commit 6203744

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/views/system/role/RoleDataPermissionForm.vue

+2-2
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ const formData = reactive({
8686
})
8787
const formRef = ref() // 表单 Ref
8888
const deptOptions = ref<any[]>([]) // 部门树形结构
89-
const deptExpand = ref(false) // 展开/折叠
89+
const deptExpand = ref(true) // 展开/折叠
9090
const treeRef = ref() // 菜单树组件 Ref
9191
const treeNodeAll = ref(false) // 全选/全不选
9292
const checkStrictly = ref(true) // 是否严格模式,即父子不关联
@@ -135,7 +135,7 @@ const submitForm = async () => {
135135
const resetForm = () => {
136136
// 重置选项
137137
treeNodeAll.value = false
138-
deptExpand.value = false
138+
deptExpand.value = true
139139
checkStrictly.value = true
140140
// 重置表单
141141
formData.value = {

0 commit comments

Comments
 (0)