報錯:
Avoided redundant navigation to current location:
Vue.use(VueRouter);後面加
const originalPush = VueRouter.prototype.push
VueRouter.prototype.push = function push(location) {
return originalPush.call(this, location).catch(err => err)
}
報錯:
Avoided redundant navigation to current location:
Vue.use(VueRouter);後面加
const originalPush = VueRouter.prototype.push
VueRouter.prototype.push = function push(location) {
return originalPush.call(this, location).catch(err => err)
}
父訪問子$children $refs $children cpn: { template: '#cpn', data(){ return{
<div id="app" @click="animate"> <div id="countdown"> <svg :width="size" :height="size">