vue中import的坑

import store from './store/index' 和 
import store from '/store/index'
是不一样的,虽然store指向的目录一样,但webpack发布的时候,前者代表文件夹中的js,后者代表npm_module的模块。

posted on 2021-06-01 17:11  李华超  阅读(394)  评论(0)    收藏  举报

导航