报错了:
Property or method "onClickForPC" is not defined on the instance but referenced during render. Make sure that this property is reactive, either in the data option, or for class-based components, by initializing the property.
- 发布:2021-03-19 11:23
- 更新:2021-03-28 13:47
- 阅读:694
1***@qq.com - 数据异常
同样,报错了,错误内容如下
[Vue warn]: Property or method "onClickForPC" is not defined on the instance but referenced during render. Make sure that this property is reactive, either in the data option, or for class-based components, by initializing the property. See: https://vuejs.org/v2/guide/reactivity.html#Declaring-Reactive-Properties.
found in
---> <UniSwipeActionItem> at components/uni-swipe-action-item/uni-swipe-action-item.vue:1
<UniSwipeAction> at components/uni-swipe-action/uni-swipe-action.vue:1
2***@qq.com (作者)
把onClickForPC这个方法注释一下就行,也没有啥问题出现。
2021-03-29 10:35