var Vue = require('vue')
import VueRouter from 'vue-router'
import Vuex from 'vuex'
import DataTables from 'vue-data-tables'
Vue.use(Vuex)
Vue.use(VueRouter)
Vue.use(DataTables)
import App from './App.vue'
import PageContent from './components/PageContent.vue'
import MyPage from './components/MyPage.vue'
let router = new VueRouter({
// router config
}
var dataTables = DataTables.default;
Vue.component('page-content', PageContent);
let MyApp = Vue.component('app', App);
MyApp = new MyApp({
el: '#app',
router,
store
})
19:32:08.263 [Vue warn]: Unknown custom element: <el-row> - did you register the component correctly? For recursive components, make sure to provide the "name" option.
found in
---> <DataTables>
<PageContent> at src/components/PageContent.vue
<SupervisorReview> at src/components/SupervisorReview.vue
<Root> 1 6:485:7
warn webpack-internal:///6:485:7
createElm webpack-internal:///6:5099:11
createChildren webpack-internal:///6:5209:9
createElm webpack-internal:///6:5114:9
...
...
19:32:08.265 [Vue warn]: Unknown custom element: <el-col> - did you register the component correctly? For recursive components, make sure to provide the "name" option.
found in
---> <DataTables>
<PageContent> at src/components/PageContent.vue
<SupervisorReview> at src/components/SupervisorReview.vue
<Root> 1 6:485:7
warn webpack-internal:///6:485:7
createElm webpack-internal:///6:5099:11
createChildren webpack-internal:///6:5209:9
createElm webpack-internal:///6:5114:9
...
...
Why is <DataTables> above <PageContent> and how can I fix it?
Context
I have an
app.js
This is
MyPage.vue
When I run the app, I get these errors
Why is
<DataTables>
above<PageContent>
and how can I fix it?[您可以用中文回复]