小优化
This commit is contained in:
parent
bc6b3675ab
commit
a6f80c2639
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user