如何在Vue中将路由器参数传递给import语句?

时间:2018-12-15 11:00:42

标签: vue.js webpack vue-router webpack-4

我有路线规则:

{
    path: ':something/:category/index',
    name: 'index',
    component: () => import(/* webpackChunkName: "[request]" */ `@module/${category???}/index.vue`)
  }

如何传递category函数在import函数中使用?

0 个答案:

没有答案