增加前端格式检查配置

This commit is contained in:
yml2213
2026-06-08 06:40:33 +08:00
parent 79ea3a476c
commit 500f511185
150 changed files with 7254 additions and 4013 deletions
@@ -22,19 +22,19 @@ const selectedRoleIds = ref<number[]>([])
watch(
() => props.modelValue,
async (val) => {
async val => {
if (val && props.admin) {
loading.value = true
try {
allRoles.value = await fetchRoles()
selectedRoleIds.value = props.admin.roles.map((r) => r.id)
selectedRoleIds.value = props.admin.roles.map(r => r.id)
} catch {
ElMessage.error('加载角色列表失败')
} finally {
loading.value = false
}
}
},
}
)
async function handleSave() {