diff --git a/src/components/basic/CommonTopMenu.vue b/src/components/basic/CommonTopMenu.vue index 56d9c64..86268b6 100644 --- a/src/components/basic/CommonTopMenu.vue +++ b/src/components/basic/CommonTopMenu.vue @@ -17,10 +17,15 @@ class="inline" style="font-size:0.9rem" > - + 이동 + + + mdi-plus + + diff --git a/src/components/basic/InnerRelatedMenuHome.vue b/src/components/basic/InnerRelatedMenuHome.vue index 1ddc892..766df71 100644 --- a/src/components/basic/InnerRelatedMenuHome.vue +++ b/src/components/basic/InnerRelatedMenuHome.vue @@ -1,20 +1,34 @@ @@ -44,6 +58,7 @@ export default { // 선택된 메뉴를 저장할 변수 // selectedMenuId: "1", // 기본값으로 일단 1번 선택 workspaceInfo: {}, + workspaceName: "", }; }, methods: { @@ -58,12 +73,19 @@ export default { async fetchWorkspaceInfo() { try { const token = "eyJhbGciOiJIUzM4NCJ9.eyJzdWIiOiJtaW5qaTIyNzZAZ21haWwuY29tIiwiaWF0IjoxNzI3ODM0NTQ0LCJleHAiOjE3Mjg0MzkzNDR9.l3yDcj9uMg1iT_71PTeihdjUgp974t-Oz_ucZnmOQHF-i4d7la7X1MOY-WCNPaQx"; - const response = await axios.get(`${process.env.VUE_APP_API_BASE_URL}/workspace/detail/${this.selectedValue}`, { + + const wsList = await axios.get(`${process.env.VUE_APP_API_BASE_URL}/workspace/list`, { + headers: { + 'Authorization': `Bearer ${token}` // 토큰을 헤더에 추가 + } + }); + const wsDetail = await axios.get(`${process.env.VUE_APP_API_BASE_URL}/workspace/detail/${this.selectedValue}`, { headers: { 'Authorization': `Bearer ${token}` // 토큰을 헤더에 추가 } }); - this.workspaceInfo = response.data.result; + this.workspaceName = wsList.data.result[this.selectedValue -1].name; + this.workspaceInfo = wsDetail.data.result; } catch (e) { console.log(e); } diff --git a/src/components/basic/InnerRelatedMenuMember.vue b/src/components/basic/InnerRelatedMenuMember.vue index e7cc49b..c0ed023 100644 --- a/src/components/basic/InnerRelatedMenuMember.vue +++ b/src/components/basic/InnerRelatedMenuMember.vue @@ -15,6 +15,8 @@