vue.js中路由的跳转方式
1.在html中使用router-link标签
//使用固定字符串 <router-link to='/about'>about</router-link>
2.在js中通过修改location.href
location.href = '/about'
1.在html中使用router-link标签
//使用固定字符串 <router-link to='/about'>about</router-link>
2.在js中通过修改location.href
location.href = '/about'