1. 程式人生 > >Type of the default value for 'searches' prop must be a function 如何解決vue中報出的這種錯誤

Type of the default value for 'searches' prop must be a function 如何解決vue中報出的這種錯誤

https://google.com/#q=vue%2Frequire-valid-default-prop  Type of the default value for 'searches' prop must be a function     src/base/search-list/search-list.vue:20:11

 

 這是在github中看到解決方案,具體的解釋可以開啟連結

https://github.com/vuejs/vue/issues/1032