增加前端格式检查配置
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user