History mode
History mode
Hash mode

HTML5 mode

Memory mode

Last updated



Last updated
http://localhost:8080/#/
http://localhost:8080/#/first
http://localhost:8080/#/second
http://localhost:8080/#/third/listimport {createWebHashHistory, createRouter} from 'vue-router';
const router = createRouter({
history:createWebHashHistory(),
//생략
});http://localhost:8080/
http://localhost:8080/first
http://localhost:8080/second
http://localhost:8080/third/listimport {createWebHistory, createRouter} from 'vue-router';
const router = createRouter({
history:createWebHistory(),
//생략
});http://localhost:8080/import {createMemoryHistory, createRouter} from 'vue-router';
const router = createRouter({
history:createMemoryHistory(),
//생략
});