From 71744548bc3c53dae7e5dd4f7e64925396e56fa2 Mon Sep 17 00:00:00 2001 From: KimDoHyun <kdh5998@naver.com> Date: Fri, 29 Nov 2019 06:01:20 +0900 Subject: [PATCH] =?UTF-8?q?=EC=88=98=EC=A0=95=EB=B3=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App.vue | 40 +++++++++++++++++++++++----------------- 1 file changed, 23 insertions(+), 17 deletions(-) diff --git a/src/App.vue b/src/App.vue index 1012011..721aaa7 100644 --- a/src/App.vue +++ b/src/App.vue @@ -47,24 +47,26 @@ </v-list-item-content> </v-list-item> <!--동아리 메뉴--> - <v-menu offset-x v-if="isLogin === true"> - <template v-slot:activator="{ on }"> - <v-list-item v-for="(club, index) in clubs" :key="index"> - <v-btn v-on="on" block style="margin-bottom:15px">{{club.club}}</v-btn> - </v-list-item> - </template> - <v-list> + <div v-if="isLogin === true"> + <v-menu offset-x v-for="(club, index) in clubs" :key="index"> + <template v-slot:activator="{ on }"> <v-list-item> - <v-btn block router :to="{name: 'club_manage'}">동아리 관리</v-btn> - </v-list-item> - <v-list-item> - <v-btn block router :to="{name: 'club_post'}">게시판</v-btn> + <v-btn v-on="on" block style="margin-bottom:15px">{{club.club}}</v-btn> </v-list-item> - <v-list-item> - <v-btn block router :to="{name: 'club_calendar'}">공용 캘린더</v-btn> - </v-list-item> - </v-list> - </v-menu> + </template> + <v-list> + <v-list-item> + <v-btn block router :to="{name: 'club_manage'}">동아리 관리</v-btn> + </v-list-item> + <v-list-item> + <v-btn block router :to="{name: 'club_post'}">게시판</v-btn> + </v-list-item> + <v-list-item> + <v-btn block router :to="{name: 'club_calendar'}">공용 캘린더</v-btn> + </v-list-item> + </v-list> + </v-menu> + </div> </v-list> </v-navigation-drawer> @@ -98,7 +100,11 @@ import {mapState} from "vuex" drawer: null, clubs:[ {id:1, club:'club1'}, - {id:2, club:'club2'} + {id:2, club:'club2'}, + {id:3, club:'club3'}, + {id:4, club:'club4'}, + {id:5, club:'club5'}, + {id:6, club:'club6'} ] }), computed:{ -- GitLab