From 01d4e6046345ebfbcb25976c33d8dc9f7ead8953 Mon Sep 17 00:00:00 2001 From: song-cc-rock Date: Tue, 25 Jul 2023 17:50:09 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E7=B3=BB=E7=BB=9F=E8=AE=BE=E7=BD=AE):=20?= =?UTF-8?q?=E6=89=8B=E5=8A=A8=E5=88=B7=E6=96=B0=E9=A1=B5=E9=9D=A2=E5=B7=A5?= =?UTF-8?q?=E4=BD=9C=E7=A9=BA=E9=97=B4=E6=88=90=E5=91=98=E6=9D=83=E9=99=90?= =?UTF-8?q?=E4=B8=8D=E5=AD=98=E5=9C=A8=E6=9C=AA=E5=88=87=E6=8D=A2=E9=BB=98?= =?UTF-8?q?=E8=AE=A4=E5=B7=A5=E4=BD=9C=E7=A9=BA=E9=97=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1028051 --user=宋昌昌 【系统设置】成员-编辑-工作空间-删除工作空间-刷新页面-不显示工作空间 https://www.tapd.cn/55049933/s/1397065 --- .../sdk-parent/frontend/src/components/head/HeaderWs.vue | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/framework/sdk-parent/frontend/src/components/head/HeaderWs.vue b/framework/sdk-parent/frontend/src/components/head/HeaderWs.vue index bb0859b620..ba919593c6 100644 --- a/framework/sdk-parent/frontend/src/components/head/HeaderWs.vue +++ b/framework/sdk-parent/frontend/src/components/head/HeaderWs.vue @@ -90,6 +90,10 @@ export default { this.currentWorkspaceName = workspace[0].name; this.workspaceList = response.data.filter(r => r.id !== this.workspaceId); this.workspaceList.unshift(workspace[0]); + } else { + // 工作空间不存在, 切换到查询的第一个 + this.currentWorkspaceName = response.data[0].name; + this._changeWs(response.data[0].id); } }); },