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
- 타입스크립트
- Ai
- vscode
- nextjs15
- 오블완
- seo
- NUXT
- ChatGPT
- AWS
- 서버 to 서버
- nextjs13
- 스벨트
- openAI
- Git
- nodejs
- github
- Vite
- vue composition api
- 티스토리챌린지
- vue router
- cors
- React
- 깃허브
- nuxt2
- 네이버 서치 어드바이저
- Github Actions
- Zustand
- nextjs14
- NextJS
- svelte
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
글 보관함