Answer the question
In order to leave comments, you need to log in
How to change component nesting?
Hello.
The following error occurred:
[Vue warn]: Error in v-on handler: "TypeError: _vm.$root.test is not a function"
found in
---> <MainLayout> at src/components/Layout/MainLayout.vue
<Category> at src/components/Posts/Category.vue
<App> at src/components/App.vue
<Root>
import './assets/scss/main.scss'
import Vue from 'vue'
import App from './components/App'
import router from './router'
import store from './store'
import axios from 'axios'
const vm = new Vue({
router,
store,
render: h => h(App)
}).$mount('#app')
export default {
name: "App",
data() {
return {}
},
methods: {
test() {
console.log('test')
}
}
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question