diff --git a/server/admin/api_set.go b/server/admin/api_set.go index bbd7231..18a1cb0 100644 --- a/server/admin/api_set.go +++ b/server/admin/api_set.go @@ -66,11 +66,12 @@ func SetSystem(w http.ResponseWriter, r *http.Request) { hi, _ := host.Info() l, _ := load.Avg() data["sys"] = map[string]interface{}{ - "goOs": runtime.GOOS, - "goArch": runtime.GOARCH, - "goVersion": runtime.Version(), - "goroutine": runtime.NumGoroutine(), - "appVersion": "v" + base.APP_VER, + "goOs": runtime.GOOS, + "goArch": runtime.GOARCH, + "goVersion": runtime.Version(), + "goroutine": runtime.NumGoroutine(), + "appVersion": "v" + base.APP_VER, + "appCommitId": base.CommitId, "hostname": hi.Hostname, "platform": fmt.Sprintf("%v %v %v", hi.Platform, hi.PlatformFamily, hi.PlatformVersion), diff --git a/web/src/pages/set/System.vue b/web/src/pages/set/System.vue index 52c63c8..ee39464 100644 --- a/web/src/pages/set/System.vue +++ b/web/src/pages/set/System.vue @@ -49,9 +49,10 @@ 运行环境 - + + - +