[Vue warn]: Property or method “message” is not defined on the instance【解决办法】

今天爱分享给大家带来[Vue warn]: Property or method “message” is not defined on the instance【解决办法】,希望能够帮助到大家。

[Vue warn]: Property or method “message” 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

报错: message没定义
原因: 跟上面的一样,message在data那里没有定义,定义一个初始值就好
解决:

data() {
 return {
     message: ''
  }
},

人已赞赏
前端

Vue Error in render: "TypeError: Cannot read property ‘list’ of undefined"【解决办法】

2020-11-8 19:48:41

前端

Vue Module build failed: Error: No parser and no file path given, couldn’t infer a parser.【解决办法】

2020-11-8 19:50:59

0 条回复 A文章作者 M管理员
    暂无讨论,说说你的看法吧
'); })();