Notice
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- NPM
- this
- jest
- git pair
- 클로저
- url #querystring
- 기후변화
- TypeScript
- OOP
- 객체참조 #객체
- ESLint
- #cloudfront #s3 #html 확장자 없애기
- lightsail nodejs apache
Archives
- Today
- Total
Hello World...
vue3, vue-router4 에서 base path 설정하기 본문
router.ts
import { createRouter, createWebHistory } from "vue-router";
import type { RouteRecordRaw } from "vue-router";
const routes = (): RouteRecordRaw[] => {
return [.......]
};
export default createRouter({
history: createWebHistory("/web"), // 괄호 안에 작성해준다
routes: routes(),
});
createWebHistory() 괄호 안에 작성해 주면 된다.
'vue.js' 카테고리의 다른 글
axios POST 방식으로 파일 다운 받기 (0) | 2022.11.18 |
---|---|
vite.config.js asset 폴더 이름 변경하기 (0) | 2022.11.15 |
nuxt2 base path 설정하기 (0) | 2022.10.25 |
Vue.js3 - fontawesome prefix 에러 나는 경우 (0) | 2022.02.26 |
Vuejs-TDD 메모 (0) | 2022.02.16 |
Comments