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