先上代碼代碼大概就是這樣,想通過(guò)vue-router判斷不同路徑在router-view中渲染不同內(nèi)容,但是像上面這么寫會(huì)報(bào)錯(cuò):[Vue warn]: Property or method "items" is not defined on the instance but referenced during render. Make sure to declare reactive data properties in the data option. (found in anonymous component - use the "name" option for better debugging messages.)不太清楚這個(gè)問(wèn)題是什么意思,希望大神們給點(diǎn)解決辦法,或者用其他路由方法也可以 只要跳轉(zhuǎn)時(shí)不重復(fù)刷新頁(yè)面就好。還有個(gè)問(wèn)題就是,vue-router 的history模式 說(shuō)是需要后端配置否則會(huì)404 我按照官網(wǎng)的寫法用node中間件把跳轉(zhuǎn)路徑都重新定向到當(dāng)前頁(yè)面了,雖然跳轉(zhuǎn)是解決了,但是每次跳轉(zhuǎn)都重新載入頁(yè)面并不是局部刷新了 有什么解決辦法嗎?
vue 在template 寫 v-for 問(wèn)題
繁星點(diǎn)點(diǎn)滴滴
2018-09-04 13:25:37