Vue中env为 production 后,main.ts引入的动态组件失效问题及解决方案
在入口文件main.ts中,动态引入了组件,如下:
main.ts
import Vue from 'vue'
import importCommonComponents from '@/plugins/common'
importCommonComponents(Vue)
plugins/common
import commonComponents from '@/components/common/index.ts'
import { VueConstructor } from 'vue'
expo
原创
2020-11-20 17:20:15 ·
923 阅读 ·
0 评论