Skip to content

Commit d74624d

Browse files
👥 - fix the chore things..
Co-authored-by: gomminjae <[email protected]>
1 parent 5f5e40f commit d74624d

File tree

4 files changed

+194
-12
lines changed

4 files changed

+194
-12
lines changed

.env

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
VITE_API_BASE_URL=http://localhost:8080
2+
#VITE_API_BASE_URL=http://localhost:8080
33

4-
#VITE_API_BASE_URL=https://back.newjeaps.com
4+
VITE_API_BASE_URL=https://back.newjeaps.com
55

package-lock.json

Lines changed: 182 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,14 @@
2727
"stompjs": "^2.3.3",
2828
"typed.js": "^2.1.0",
2929
"vue": "^3.5.12",
30+
"vue-carousel": "^0.18.0",
3031
"vue-chartjs": "^5.3.2",
3132
"vue-fullpage.js": "^0.2.20",
3233
"vue-range-slider": "^0.6.0",
3334
"vue-router": "^4.4.5",
3435
"vue-simple-range-slider": "^1.1.0",
3536
"vue-typer": "^1.2.0",
37+
"vue3-carousel": "^0.12.0",
3638
"vue3-kakao-maps": "^2.3.10"
3739
},
3840
"devDependencies": {

src/views/notice/NoticeDetailView.vue

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<script setup>
22
import { useNoticeStore } from "@/stores/notice";
3+
import { useUserStore } from '@/stores/userStore'; // Pinia 스토어 import
34
import { onMounted } from "vue";
45
import { useRoute } from "vue-router";
56
@@ -9,47 +10,44 @@ const route = useRoute();
910
1011
// 공지사항 ID 가져오기
1112
const noticeId = route.params.id;
13+
const userStore = useUserStore();
1214
1315
// 컴포넌트 마운트 시 데이터 로드
14-
onMounted(() => {
15-
noticeStore.fetchNoticeDetail(noticeId);
16+
onMounted(() => { async () =>{
17+
await noticeStore.fetchNoticeDetail(noticeId);
18+
await userStore.fetchUserInfo();
19+
}
1620
});
1721
</script>
18-
1922
<template>
2023
<div class="bg-gray-50 min-h-screen">
24+
2125
<!-- 공지사항 제목 -->
2226
<div class="bg-white shadow-md rounded-lg p-6 max-w-4xl mx-auto mt-20">
2327
<h1 class="text-3xl font-bold text-gray-900 mb-4 border-b-2 border-gray-200 pb-4">
2428
{{ noticeStore.noticeDetail?.title }}
2529
</h1>
26-
2730
<!-- 작성일 및 조회수 -->
2831
<div class="text-sm text-gray-500 flex justify-between items-center mb-6">
2932
<p>작성일: <span class="font-medium">{{ noticeStore.noticeDetail?.createdAt }}</span></p>
3033
<p>조회수: <span class="font-medium">{{ noticeStore.noticeDetail?.views }}</span></p>
3134
</div>
32-
3335
<!-- 공지사항 내용 -->
3436
<div class="text-gray-800 leading-relaxed">
3537
<p>{{ noticeStore.noticeDetail?.content }}</p>
3638
</div>
37-
3839
<!-- 뒤로가기 버튼 -->
3940
<div class="mt-8 text-center">
4041
<router-link
4142
to="/notice"
42-
class="bg-[#5995ED] text-white px-6 py-2 rounded-lg shadow-md hover:bg-blue-600 transition duration-300"
43-
>
43+
class="bg-[#5995ED] text-white px-6 py-2 rounded-lg shadow-md hover:bg-blue-600 transition duration-300">
4444
목록으로 돌아가기
4545
</router-link>
4646
</div>
4747
</div>
4848
</div>
4949
</template>
50-
5150
<style scoped>
52-
5351
.bg-gray-50 {
5452
background-color: #f9fafb;
5553
}

0 commit comments

Comments
 (0)