Vue3 에서 라우터 설정
Vue3 Vue3 Router 의 경우, vue-router 가 아닌, vue-router@next 를 설치해주어야 합니다. yarn add vue-router@next router 폴더 밑에 index.js 를 생성합니다. 아래와 같이 기본 셋팅을 해줍니다. import { createWebHistory, createRouter } from 'vue-router' function getComponent(component) { return () => import(`../components/${component}.vue`) } const routes = [ { path: '/', name: 'Main', component: getComponent('MainComponent') }, // 404 페이지 { ..
개발../Vue
2023. 5. 3. 19:39
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- nodejs
- Ai
- 타입스크립트
- 오블완
- NUXT
- 깃허브
- Git
- svelte
- cors
- 서버 to 서버
- 네이버 서치 어드바이저
- openAI
- Vite
- NextJS
- github
- vue router
- nextjs14
- React
- nextjs15
- nextjs13
- AWS
- ChatGPT
- 스벨트
- Github Actions
- nuxt2
- seo
- vscode
- 티스토리챌린지
- vue composition api
- Zustand
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | |||||
3 | 4 | 5 | 6 | 7 | 8 | 9 |
10 | 11 | 12 | 13 | 14 | 15 | 16 |
17 | 18 | 19 | 20 | 21 | 22 | 23 |
24 | 25 | 26 | 27 | 28 | 29 | 30 |
31 |
글 보관함