Advertisement

[vue warn]属性或方法"x"未在实例上定义但被渲染时引用

阅读量:

报错信息

复制代码
    Property or method "x" 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
    
    ---> <Member> at src/components/Member.vue
       <Layout> at src/components/Layout.vue
         <App> at src/App.vue
           <Root>
    
    
      
      
      
      
      
      
      
      
    

在实例中未定义属性或方法“xx”,但在展示过程中却发生了引用。为避免此类问题,应通过初始化该属性

全部评论 (0)

还没有任何评论哟~