refactor: 使用前端session来保存当前项目、工作空间、组织的信息,切换后可以在不同的页面使用
This commit is contained in:
parent
9bae1ef89e
commit
2508965ab3
|
@ -124,7 +124,7 @@ export default {
|
||||||
if (!this.currentUser.lastOrganizationId) {
|
if (!this.currentUser.lastOrganizationId) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
this.$get("/workspace/list/orgworkspace/", response => {
|
this.$get("/workspace/list/orgworkspace/" + getCurrentOrganizationId(), response => {
|
||||||
let data = response.data;
|
let data = response.data;
|
||||||
if (data.length === 0) {
|
if (data.length === 0) {
|
||||||
this.workspaceList = [{name: this.$t('workspace.none')}];
|
this.workspaceList = [{name: this.$t('workspace.none')}];
|
||||||
|
|
Loading…
Reference in New Issue