mirror of
https://gitee.com/fit2cloud-feizhiyun/MeterSphere.git
synced 2024-12-04 21:19:52 +08:00
fix(系统设置): 手动刷新页面工作空间成员权限不存在未切换默认工作空间
--bug=1028051 --user=宋昌昌 【系统设置】成员-编辑-工作空间-删除工作空间-刷新页面-不显示工作空间 https://www.tapd.cn/55049933/s/1397065
This commit is contained in:
parent
12de2b9758
commit
01d4e60463
@ -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);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user