진입한 url path에 맞게 메서드 실행
2021-11-06
해결 방법
beforeRouteEnter(to, from, next) {
next(vm => {
if (to.path.indexOf('/path') > -1) {
vm.methodName;
}
})
},
참고자료
Last updated
Was this helpful?
2021-11-06
beforeRouteEnter(to, from, next) {
next(vm => {
if (to.path.indexOf('/path') > -1) {
vm.methodName;
}
})
},
Last updated
Was this helpful?