Skip to content

Commit

Permalink
Merge pull request #69 from hw-coconote/feat/HC-6
Browse files Browse the repository at this point in the history
fix/HC-6 채널 수정시 공개범위 아이콘도 같이 변경되게 수정, 채널회원 강퇴 기능 수정
  • Loading branch information
epiuwiruiw authored Oct 14, 2024
2 parents adf0bed + 3b95697 commit 783e59f
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions src/components/basic/ChannelCommonMenu.vue
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,9 @@ export default {
updateChannelInfo: {
channelName: "",
channelInfo: "",
isPublic: 1,
isPublic: "",
},
isPublic: "",
};
},
computed: {
Expand All @@ -151,7 +152,7 @@ export default {
document.removeEventListener('click', this.handleClickOutside);
},
created() {
this.fetchBookmark(this.getChannelId);
this.fetchChannelInfo(this.getChannelId);
},
methods: {
Expand Down Expand Up @@ -244,7 +245,11 @@ export default {
console.error("채널 수정 에러", error);
}
},
async fetchBookmark(channelId) {
async fetchChannelInfo(channelId) {
const chInfo = await axios.get(`${process.env.VUE_APP_API_BASE_URL}/channel/detail/${channelId}`);
this.updateChannelInfo.isPublic = Number(chInfo.data.result.isPublic);
console.log("기존 수정 전 공개범위", Number(chInfo.data.result.isPublic));
const result = await fetchChannelMemberInfo(channelId); // 모듈로 함수 호출
if(result.isBookmark) {
this.isBookmarked = true;
Expand Down

0 comments on commit 783e59f

Please sign in to comment.