diff --git a/app/theme/wp/wp.go b/app/theme/wp/wp.go index c768bea..0d6c807 100644 --- a/app/theme/wp/wp.go +++ b/app/theme/wp/wp.go @@ -250,6 +250,9 @@ func AdditionScript(h *Handle) { return } fn := func(f, name string) { + if f == "" { + return + } ss, err := os.ReadFile(f) if err != nil { logs.Error(err, str.Join("解析", name, "失败"), f)