This commit is contained in:
18631081161 2026-01-23 20:24:23 +08:00
parent 4995a89b23
commit 61d1d47816

View File

@ -149,19 +149,6 @@ const formatTime = (time: string | undefined) => {
return time.replace('T', ' ').substring(0, 19)
}
//
const getMethodTagType = (method: string | undefined): 'success' | 'primary' | 'warning' | 'danger' | 'info' => {
if (!method) return 'info'
const methodMap: Record<string, 'success' | 'primary' | 'warning' | 'danger' | 'info'> = {
GET: 'success',
POST: 'primary',
PUT: 'warning',
DELETE: 'danger',
PATCH: 'warning'
}
return methodMap[method.toUpperCase()] || 'info'
}
onMounted(() => {
fetchModuleOptions()
fetchActionOptions()