报错代码:

[Vue warn]: Property or method "handleClick" 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.

报错截图:
在这里插入图片描述
解决方法:
methods中没有定义handleClick的方法

methods: {
    handleClick (tab, event) {
      console.log(tab, event)
    }
  }
Logo

前往低代码交流专区

更多推荐