:::: 개발 ::::/::: Vue:::

vue router link 종류 정리

nayha 2019. 6. 18. 14:29

vue router link 종류 정리 


퍼블에서  a href 

<router-link :to="{ name: 'LoginBackOffice'}"> 이동</router-link>



button 으로 주었을때

router.push({name: 'LoginBackOffice'})" 



Js 파일 

import {router} from "./router" 

router.push({name: 'LoginBackOffice'})  // path /login/Login
반응형