猿问

vue-cli3 router.js配置

1.router.js提示语法错误

export default [
    {
        path: '/wel',
        component: Layout,
        redirect: '/wel/index',
        children: [
            {
                path: 'index',
                name: '首页',
                component: () => import('@/page/wel'),
            },
        ],
    },

Syntax Error: SyntaxError: E:/WorkSpace/avue/src/router/views/index.js: Unexpected token (34:5)  32 |                          // meta: { tag: false },配置后不会添加到tag里
  33 |                          component: () =>
> 34 |                                  import('@/views/info/index'),
     |                                  ^  35 |                  },  36 |          ],  37 |  },



撒科打诨
浏览 1530回答 1
1回答

扬帆大鱼

component: () =>     import('./views/info/index.vue'),
随时随地看视频慕课网APP

相关分类

Vue.js
我要回答