Closed
Description
Version
3.0.3, also 3.1.3
Reproduction link
https://codesandbox.io/s/vue-template-1148z
Steps to reproduce
To see the error:
- Enter a page for the target route, not by $router.push but manually enter the url target and press enter on keyboard
- See error on browser console.
What is expected?
Get into the page as usually without the error.
What is actually happening?
When entered the page got the error:
vue-router.esm.js?8c4f:2079 TypeError: parentVal.concat is not a function
at mergeHook (vue.runtime.esm.js?2b0e:1272)
at mergeField (vue.runtime.esm.js?2b0e:1552)
at mergeOptions (vue.runtime.esm.js?2b0e:1543)
at Function.Vue.extend (vue.runtime.esm.js?2b0e:5153)
To make its work 3 ways:
- import as a normal not async way.
- combine import as a normal and import as async way.
- just remove the beforeRouteLeave.