1、beforerouteenter 中 next vm改变参数无效
当点击切换路由时:beforeRouterLeave-->beforeEach-->beforeEnter-->beforeRouteEnter-->beforeResolve-->afterEach-->beforeCreate-->created-->beforeMount-->mounted-->beforeRouteEnter的next的回调
2、使用 element-ui 的 date-picker
组件,本地提示 warn
使用的 element-ui
版本 2.15.9
Avoid mutating a prop directly since the value will be overwritten whenever the parent component re-renders. Instead, use a data or computed property based on the prop's value. Prop being mutated: "placement"
经过排查。发现,picker.vue
文件中,props
接收了 placement
但是 created
中又进行了 二次赋值。