Vue2.0 template or render function not defined.

2019-05-16 12:07:37

定义Vue routers

import Vue from 'vue'
import Router from 'vue-router'
Vue.use(Router);

export default new Router({
    routes: [
        {
            path: '/',
            component: require('./components/container'),
            children: [

            ]
        }
    ],
})

component 改为 components