(一)魔法注释
在平时的项目中,经常会看见这样的代码,在配置路由里面
const Home = () => import(/* webpackChunkName: 'Home' */ '@/views/Home/Home.vue')
const Mine = () => import(/* webpackChunkName: 'Mine' */ '@/views/Mine/Mine.vue')
const Detail = () => import(/* webpackChunkName: 'Detail' */ '@/views/Detail/Detail.vue')
const Submit = () => import(/* webpackChunkName: 'Submit' */ '@/views/Submit/Submit.vue')
const RefundDetail = () => import(/* webpackChunkName: 'RefundDetail' */ '@/views/RefundDetail/Index.vue')
const config = [
{
path: '/',
name: 'Home',
component: Home
}, {
path: '/mine',
name: 'Mine',
component: Mine
}, {
path: '/submit',
name: 'submit',
component: Submit
}, {
path: '/detail',
name