From fbf371069bd8343f03091439302479d47ad60447 Mon Sep 17 00:00:00 2001 From: liuzx Date: Wed, 9 Nov 2022 18:06:06 +0800 Subject: [PATCH] fix-kanban --- routers/api/v1/repo/cloudbrain_dashboard.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/routers/api/v1/repo/cloudbrain_dashboard.go b/routers/api/v1/repo/cloudbrain_dashboard.go index 0cb883214..5ba694e31 100755 --- a/routers/api/v1/repo/cloudbrain_dashboard.go +++ b/routers/api/v1/repo/cloudbrain_dashboard.go @@ -713,6 +713,20 @@ func GetCloudbrainsDetailData(ctx *context.Context) { if cloudBrainType == models.TypeCDCenter && aiCenter == models.AICenterOfChengdu { aiCenter = "" } + if cloudBrainType == models.TypeCloudBrainAll { + if aiCenter == models.AICenterOfCloudBrainOne { + cloudBrainType = models.TypeCloudBrainOne + aiCenter = "" + } + if aiCenter == models.AICenterOfCloudBrainTwo { + cloudBrainType = models.TypeCloudBrainTwo + aiCenter = "" + } + if aiCenter == models.AICenterOfChengdu { + cloudBrainType = models.TypeCDCenter + aiCenter = "" + } + } page := ctx.QueryInt("page") pageSize := ctx.QueryInt("pagesize")