fix(系统设置): 手动刷新页面工作空间成员权限不存在未切换默认工作空间

--bug=1028051 --user=宋昌昌 【系统设置】成员-编辑-工作空间-删除工作空间-刷新页面-不显示工作空间 https://www.tapd.cn/55049933/s/1397065
This commit is contained in:
song-cc-rock 2023-07-25 17:50:09 +08:00 committed by 刘瑞斌
parent 12de2b9758
commit 01d4e60463
1 changed files with 4 additions and 0 deletions

View File

@ -90,6 +90,10 @@ export default {
this.currentWorkspaceName = workspace[0].name; this.currentWorkspaceName = workspace[0].name;
this.workspaceList = response.data.filter(r => r.id !== this.workspaceId); this.workspaceList = response.data.filter(r => r.id !== this.workspaceId);
this.workspaceList.unshift(workspace[0]); this.workspaceList.unshift(workspace[0]);
} else {
// ,
this.currentWorkspaceName = response.data[0].name;
this._changeWs(response.data[0].id);
} }
}); });
}, },