小优化

This commit is contained in:
xing 2023-02-16 00:34:36 +08:00
parent bc6b3675ab
commit a6f80c2639

View File

@ -31,11 +31,11 @@ var repeat = map[string]string{
"no-repeat": "no-repeat",
}
var backgroud = safety.NewVar("")
var backgroud = safety.NewVar("default")
func (h *Handle) CustomBackGround() {
b := backgroud.Load()
if b == "" {
if b == "default" {
b = h.CalCustomBackGround()
backgroud.Store(b)
}