规范化UI JS CONFIG
Some checks failed
build / build (api, amd64, linux) (push) Failing after -51s
build / build (api, arm64, linux) (push) Failing after -52s
build / build (api.exe, amd64, windows) (push) Failing after -51s

This commit is contained in:
CN-JS-HuiBai
2026-04-18 21:55:54 +08:00
parent 9d95a7c650
commit 8cca428d89
5 changed files with 518 additions and 518 deletions

View File

@@ -270,14 +270,14 @@ func formatTimeValue(value *time.Time) string {
func getFetchParams(c *gin.Context) map[string]string {
params := make(map[string]string)
// 1. Get from Query parameters
for k, v := range c.Request.URL.Query() {
if len(v) > 0 {
params[k] = v[0]
}
}
// 2. Override with JSON body if applicable (for POST)
if c.Request.Method == http.MethodPost {
var body map[string]any
@@ -288,6 +288,6 @@ func getFetchParams(c *gin.Context) map[string]string {
}
}
}
return params
}