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