Skip to content

Commit

Permalink
Merge pull request #27 from hw-coconote/fix/DriveSettingChannelId
Browse files Browse the repository at this point in the history
[FIX] 하드 코딩된 채널아이디를 URL 에서 가져오도록 변경
  • Loading branch information
jsangmin99 authored Oct 2, 2024
2 parents d5d6124 + 40897e3 commit 6f851ba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/drive/FolderComponent.vue
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ export default {
async createFolder() {
try {
const response = await axios.post(`${process.env.VUE_APP_API_BASE_URL}/drive/folder/create`, {
channelId: 1,
channelId: this.$route.params.id, // URL에서 채널 ID 추출
parentFolderId: this.currentFolderId,
});
alert(response.data.result.message || '폴더 생성 완료');
Expand Down Expand Up @@ -283,7 +283,7 @@ export default {
return;
}
const metadataDto = {
channelId: 1, // 적절한 채널 ID로 수정
channelId: this.$route.params.id, // 적절한 채널 ID로 수정
folderId: this.currentFolderId,
fileType: 'OTHER',
fileSaveListDto: uploadedFileUrls.map((url, index) => ({
Expand Down

0 comments on commit 6f851ba

Please sign in to comment.