(解决空白问题)在打包之前一定要修改 config 目录下的 index.js 文件中的 bulid 模块打包配置项,否则会出现空白,如图 修改前 assetsPublicPath= '/',。 修改后 assetsPublicPath='./' 然后在根目录下执行 npm run build 会在 Read More
posted @ 2019-03-13 19:03
不不abc
Views(5373)
Comments(1)
Diggs(1)
1/在config中index.js中 找到proxyTable在里面添加如下代码 proxyTable: { '/api': { target: 'https://api.douban.com/v2/movie/', changeOrigin: true, pathRewrite:{ '^/api Read More
posted @ 2019-03-13 17:27
不不abc
Views(489)
Comments(0)
Diggs(0)