diff --git a/src/components/list/BoardCard.vue b/src/components/list/BoardCard.vue index c2ed3c0..c305ec7 100644 --- a/src/components/list/BoardCard.vue +++ b/src/components/list/BoardCard.vue @@ -1,65 +1,62 @@ - - - - - - - - - - - {{ title }} - - - {{ content }} - - - {{ date }} - - - - - + + 게시물이 없습니다. + + {{ post.title }} + {{ post.content }} + {{ formatDate(post.date) }} - diff --git a/src/views/board/BoardList.vue b/src/views/board/BoardList.vue index 25109bd..7eac79e 100644 --- a/src/views/board/BoardList.vue +++ b/src/views/board/BoardList.vue @@ -8,19 +8,23 @@ - - + + 공지 자유 익명 - {{ item.viewCount }} + + {{ item.viewCount }} - {{ item.cmtCount }} + + {{ item.cmtCount }} @@ -32,26 +36,40 @@ - - + diff --git a/vite.config.js b/vite.config.js index 617eec4..061e29f 100644 --- a/vite.config.js +++ b/vite.config.js @@ -5,6 +5,14 @@ import vueDevTools from 'vite-plugin-vue-devtools' // https://vite.dev/config/ export default defineConfig({ + server: { + proxy: { + '/api': { + target: 'http://localhost:10325', // Spring Boot 서버 주소 + changeOrigin: true, + }, + }, + }, plugins: [ vue(), vueDevTools(),
- {{ content }} -
- {{ date }} - -
{{ post.content }}