🐛 fix can't find zhimg for dev

This commit is contained in:
微凉
2022-01-18 18:19:58 +08:00
parent e1671a0511
commit 0a901a2eb0
2 changed files with 6 additions and 3 deletions

View File

@ -25,8 +25,11 @@ func InitIndex() {
}
index, err = public.Public.Open(fmt.Sprintf("%s.html", conf.Conf.Assets))
if err != nil {
log.Fatalf(err.Error())
return
log.Error(err.Error())
index, err = public.Public.Open("index.html")
if err != nil {
log.Fatal(err.Error())
}
}
data, _ := ioutil.ReadAll(index)
conf.RawIndexHtml = string(data)