fix:审计日志修复详情显示问题

This commit is contained in:
qian committed 2026-06-05 23:34:32 +08:00
1 parent f0ac2d90d4
commit dd7ff73d28
2 files changed
+8 -2

No files matched your search

+7 -1
View File
@@ -1,6 +1,8 @@
package v1
import (
"encoding/json"
"github.com/gogf/gf/v2/frame/g"
)
@@ -85,7 +87,11 @@ type RequestAuditLogDetailReq struct {
}
type RequestAuditLogDetailRes struct {
Data map[string]any `json:"data"`
Data map[string]any `json:"-"`
}
func (r *RequestAuditLogDetailRes) MarshalJSON() ([]byte, error) {
return json.Marshal(r.Data)
}
// OperationLogExportReq 导出操作日志请求
@@ -152,7 +152,7 @@ async function openDetail(id: number) {
detailLoading.value = true
try {
const res = await request.get(`/admin/error-logs/${id}`)
detailData.value = res.data?.data?.data
detailData.value = res.data?.data
} catch {
// error auto-shown
} finally {