修改go版本为1.15

This commit is contained in:
bjd
2021-01-08 13:09:04 +08:00
parent 8372b9e58e
commit 206cfebb9a
7 changed files with 18 additions and 20 deletions

View File

@@ -2,7 +2,6 @@
package admin
import (
"embed"
"net/http"
"net/http/pprof"
@@ -10,8 +9,6 @@ import (
"github.com/gorilla/mux"
)
var UiPath embed.FS
// 开启服务
func StartAdmin() {
@@ -21,7 +18,7 @@ func StartAdmin() {
r.Handle("/", http.RedirectHandler("/ui/", http.StatusFound)).
Name("static")
r.PathPrefix("/ui/").Handler(http.FileServer(
http.FS(UiPath),
http.Dir(base.Cfg.UiPath),
)).Name("static")
r.HandleFunc("/base/login", Login).Name("login")