vue里报这个错误处理
vue里报这个错误
vue.esm.js?efeb:628 [Vue warn]: Missing required prop: "to"
vue.esm.js?efeb:628 [Vue warn]: Error in render: "TypeError: Cannot read property '_normalized' of undefined"
vue.esm.js?efeb:1897 TypeError: Cannot read property '_normalized' of undefined

处理方法: <router-link class="button" >立即购买</router-link> 里要加上to的值
<router-link to="/food" class="button" >立即购买</router-link> /*这是正确的写法*/
给心灵一个纯净空间,让思想,情感,飞扬!

浙公网安备 33010602011771号