목록2020/10/23 (1)
알쓸전컴(알아두면 쓸모있는 전자 컴퓨터)
vue histroy mode tomcat 적용하기 (1번 방법)
vue histroy 모드를 tomcat 에서 그냥 사용 하면 url로 어떤 경로를 바로 접속시 404 에러를 만납니다. const router = new VueRouter({ mode: 'history', routes }) vue.config.js module.exports = { publicPath: "/authComponent/", } 아래와 같이 라우팅이 잡혀 있을때. const routes: Array = [ { path: '/authComponent', name: 'Home', component: Home }, { path: '/authComponent/about', name: 'About', // route level code-splitting // this generates a separa..
Web /Vue js tip
2020. 10. 23. 15:56