K-EXPLORER: support UIOffline for value injection

This commit is contained in:
niusmallnan
2021-04-13 15:18:39 +08:00
parent 2c645b3680
commit 5049a746da

View File

@@ -7,6 +7,10 @@ import (
"github.com/gorilla/mux"
)
var (
UIOffline = "dynamic"
)
func New(path string) http.Handler {
vue := NewUIHandler(&Options{
Path: func() string {
@@ -15,6 +19,9 @@ func New(path string) http.Handler {
}
return path
},
Offline: func() string {
return UIOffline
},
})
router := mux.NewRouter()