vuex com axios
[Concluído]
Cara eu nao consigo fazer funcionar n acion o axios.. ja tentei de todo jeito
vue.esm.js?a026:628 [Vue warn]: Error in v-on handler: "TypeError: Cannot read property 'post' of undefined"
esse é o erro que me traz..
e mais esse
vue.esm.js?a026:628 [Vue warn]: Error in v-on handler: "TypeError: Cannot read property 'post' of undefined"
found in
---> <Cursos> at src/components/administrador/gestaocursos/Cursos.vue
<VaCard> at node_modules/vuestic-ui/src/components/vuestic-components/va-card/VaCard.vue
<Dashboard> at src/components/administrador/gestaocursos/Dashboard.vue
<VaPageLayout> at src/components/administrador/VaPageLayout.vue
<AppLayout> at src/components/administrador/AppLayout.vue
<App> at src/app/App.vue
<Root>
warn @ vue.esm.js?a026:628
logError @ vue.esm.js?a026:1893
globalHandleError @ vue.esm.js?a026:1888
handleError @ vue.esm.js?a026:1848
invokeWithErrorHandling @ vue.esm.js?a026:1871
invoker @ vue.esm.js?a026:2188
original._wrapper @ vue.esm.js?a026:7559
vue.esm.js?a026:1897 TypeError: Cannot read property 'post' of undefined
at Store.addCurso (actions.js?109b:10)
at Array.wrappedActionHandler (vuex.esm.js?2f62:732)
at Store.dispatch (vuex.esm.js?2f62:437)
at Store.boundDispatch [as dispatch] (vuex.esm.js?2f62:331)
at VueComponent.addNovo (Cursos.vue?0cb0:141)
at submit (eval at ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"0709aca6-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/components/administrador/gestaocursos/Cursos.vue?vue&type=template&id=56ec93f0& (index.js:6066), <anonymous>:40:32)
at invokeWithErrorHandling (vue.esm.js?a026:1863)
at HTMLFormElement.invoker (vue.esm.js?a026:2188)
at HTMLFormElement.original._wrapper (vue.esm.js?a026:7559)
Boa noite amigo!
Consegui resolver.. Abraço
Olá amigo!
Que bom que conseguiu resolver. Parabéns!
Abs;
Precisa estar logado para conseguir responder a este ticket!
Clique Aqui Para Entrar!