mirror of
https://github.com/AlistGo/alist.git
synced 2025-04-23 05:44:04 +08:00
fix: error on repeated reading static
(#5957)
* Update static.go * rm initial value of static --------- Co-authored-by: Andy Hsu <i@nn.ci>
This commit is contained in:
parent
aef952ae68
commit
c82866975e
@ -16,11 +16,11 @@ import (
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
var static fs.FS = public.Public
|
||||
var static fs.FS
|
||||
|
||||
func initStatic() {
|
||||
if conf.Conf.DistDir == "" {
|
||||
dist, err := fs.Sub(static, "dist")
|
||||
dist, err := fs.Sub(public.Public, "dist")
|
||||
if err != nil {
|
||||
utils.Log.Fatalf("failed to read dist dir")
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user