diff --git a/src/components/user/UserList.vue b/src/components/user/UserList.vue new file mode 100644 index 0000000..aaf9f7a --- /dev/null +++ b/src/components/user/UserList.vue @@ -0,0 +1,70 @@ + + + + diff --git a/src/router/index.js b/src/router/index.js index 95a331f..c72c9ad 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -50,6 +50,21 @@ const routes = [ component: () => import('@v/user/TheRegister.vue'), meta: { layout: 'NoLayout' }, }, + { + path: '/voteboard', + component: () => import('@v/voteboard/TheVoteBoard.vue'), + children: [ + { + path: '', + component: () => import('@v/voteboard/voteBoardList.vue') + }, + { + path: 'write', + component: () => import('@v/voteboard/voteboardWrite.vue') + }, + + ] + }, { path: '/sample', component: () => import('@c/calendar/SampleCalendar.vue'), diff --git a/src/stores/userList.js b/src/stores/userList.js new file mode 100644 index 0000000..25fbb9a --- /dev/null +++ b/src/stores/userList.js @@ -0,0 +1,21 @@ +/* + 작성자 : 공현지 + 작성일 : 2025-01-24 + 수정자 : + 수정일 : + 설명 : 사용자 전체 목록 +*/ +import { defineStore } from "pinia"; +import axios from "@api"; + +export const useUserStore = defineStore("userStore", { + state: () => ({ + userList: [], + }), + actions: { + async fetchUserList() { + const response = await axios.get('user/allUserList'); + this.userList = response.data.data; + }, + }, +}); diff --git a/src/views/voteboard/TheVoteBoard.vue b/src/views/voteboard/TheVoteBoard.vue new file mode 100644 index 0000000..da14c4a --- /dev/null +++ b/src/views/voteboard/TheVoteBoard.vue @@ -0,0 +1,10 @@ + + + diff --git a/src/views/voteboard/voteboardWrite.vue b/src/views/voteboard/voteboardWrite.vue new file mode 100644 index 0000000..bb6f3d5 --- /dev/null +++ b/src/views/voteboard/voteboardWrite.vue @@ -0,0 +1,39 @@ + + +