vue中使用函数绑定时报错has already been defined as a data property

vue中使用@click=”showFilterPop” 报错

vue.esm.js?efeb:591 [Vue warn]: Method "showFilterPop" has already been defined as a data property.

found in

---> <GoodsList> at src\views\GoodsList.vue
       <App> at src\App.vue
         <Root>

解决方法

修改函数名(现阶段只是改函数名就好了….)

猜你喜欢

转载自blog.csdn.net/webfullstack/article/details/80744107