[Vue warn]: Property “visible” must be accessed with “$data.visible”

vue开发的项目报错

Property “visible” must be accessed with “$data.visible”

上图

[Vue warn]: Property “visible“ must be accessed with “$data.visible“

找了好久才发现问题

是因为element的Message 消息提示this.this.$message.error()括号里面只能放字符串

而我是这样写的

[Vue warn]: Property “visible“ must be accessed with “$data.visible“
catch传的err是个对象,所以报了这些乱七八糟的错,

括号里改成err.message就完美解决了

[Vue warn]: Property “visible“ must be accessed with “$data.visible“

相关文章:

  • 2021-11-18
  • 2022-12-23
  • 2022-12-23
  • 2021-05-14
  • 2021-12-19
  • 2021-12-29
猜你喜欢
  • 2021-06-24
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-10
  • 2021-06-17
  • 2022-12-23
相关资源
相似解决方案