This commit is contained in:
xing 2023-10-30 22:21:08 +08:00
parent 64a2c2e33b
commit 42484e3f96
2 changed files with 4 additions and 3 deletions

View File

@ -264,10 +264,11 @@ func Reload() {
safetyMaps.Flush()
callsM.Flush()
flushMapFn.Flush()
slice.Sort(calls.Load(), func(i, j queue) bool {
callll := calls.Load()
slice.Sort(callll, func(i, j queue) bool {
return i.order > j.order
})
for _, call := range calls.Load() {
for _, call := range callll {
call.fn()
}
return

View File

@ -118,7 +118,7 @@ func InitHandle(fn func(*Handle), h *Handle) {
h.C.Set("inited", true)
inited = true
return *h
})
}, float64(-100))
h.ginH = maps.Copy(hh.ginH)
h.ginH["calPostClass"] = postClass(h)
h.ginH["calBodyClass"] = bodyClass(h)