버그 수정, 모임장 설정 수정

This commit is contained in:
2025-05-31 08:13:36 +09:00
parent 27fbf0541d
commit e609a8ce52
9 changed files with 314 additions and 105 deletions
+14 -1
View File
@@ -15,7 +15,7 @@
<div class="club-header">
<div class="club-title">
<h3>{{ selectedClub.name }}</h3>
<router-link v-if="userRole === 'admin' || userRole === '모임장' || userRole === '운영진'"
<router-link v-if="userRole === 'admin' || userClubRole === '모임장'"
:to="{ name: 'ClubSettings' }"
class="settings-icon"
title="클럽 설정">
@@ -340,6 +340,19 @@ const loadMenuItems = async () => {
}
};
// 사이드바 새로고침 메소드
const refreshSidebar = async () => {
console.log('사이드바 새로고침 시작...');
await fetchClubs();
await fetchClubInfo();
loadMenuItems();
initializeExpandedGroups(); // 메뉴 그룹 초기화
console.log('사이드바 새로고침 완료');
};
// 사이드바 새로고침 메소드를 전역으로 노출
provide('refreshSidebar', refreshSidebar);
// 사용자 정보 로드
const loadUserData = async () => {
const token = localStorage.getItem('token');