增加前端格式检查配置

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
@@ -2,7 +2,13 @@
import { ElMessage } from 'element-plus'
import { ref, watch } from 'vue'
import { createRole, updateRole, type Role, type CreateRoleRequest, type UpdateRoleRequest } from '@/features/admin/api/adminRoles'
import {
createRole,
updateRole,
type Role,
type CreateRoleRequest,
type UpdateRoleRequest,
} from '@/features/admin/api/adminRoles'
const props = defineProps<{
modelValue: boolean
@@ -25,7 +31,7 @@ const isEdit = ref(false)
watch(
() => props.modelValue,
(val) => {
val => {
if (val) {
if (props.role) {
isEdit.value = true
@@ -40,7 +46,7 @@ watch(
}
}
},
{ immediate: true },
{ immediate: true }
)
async function handleSave() {