Dashboard可以提示API节点升级

This commit is contained in:
GoEdgeLab
2021-08-21 19:44:03 +08:00
parent ee86fb4846
commit 510355c830
3 changed files with 8 additions and 2 deletions

View File

@@ -3,6 +3,8 @@ package teaconst
const ( const (
Version = "0.3.0" Version = "0.3.0"
APINodeVersion = "0.3.0"
ProductName = "Edge Admin" ProductName = "Edge Admin"
ProcessName = "edge-admin" ProcessName = "edge-admin"
ProductNameZH = "Edge" ProductNameZH = "Edge"

View File

@@ -41,7 +41,9 @@ func (this *IndexAction) RunGet(params struct{}) {
} }
// 读取看板数据 // 读取看板数据
resp, err := this.RPC().AdminRPC().ComposeAdminDashboard(this.AdminContext(), &pb.ComposeAdminDashboardRequest{}) resp, err := this.RPC().AdminRPC().ComposeAdminDashboard(this.AdminContext(), &pb.ComposeAdminDashboardRequest{
ApiVersion: teaconst.APINodeVersion,
})
if err != nil { if err != nil {
this.ErrorPage(err) this.ErrorPage(err)
return return

View File

@@ -41,7 +41,9 @@ func (this *IndexAction) RunGet(params struct{}) {
} }
// 读取看板数据 // 读取看板数据
resp, err := this.RPC().AdminRPC().ComposeAdminDashboard(this.AdminContext(), &pb.ComposeAdminDashboardRequest{}) resp, err := this.RPC().AdminRPC().ComposeAdminDashboard(this.AdminContext(), &pb.ComposeAdminDashboardRequest{
ApiVersion: teaconst.APINodeVersion,
})
if err != nil { if err != nil {
this.ErrorPage(err) this.ErrorPage(err)
return return