vue.esm.js?efeb:628 [Vue warn]: Error in v-on handler: "TypeError: Cannot read property 'post' of undefined"

found in

---> <Vchat> at src/components/Vchat.vue
       <App> at src/App.vue
         <Root>

vue.esm.js?efeb:1897 TypeError: Cannot read property 'post' of undefined
    at VueComponent.respost (Vchat.vue?964c:119)
    at VueComponent.postMessage (Vchat.vue?964c:89)

 

在router中添加

import vueRsource from 'vue-resource'

Vue.use(vueRsource);

 

Logo

前往低代码交流专区

更多推荐