Vue CLI-Axios使用index.html响应

时间:2020-03-18 17:10:19

标签: vue.js axios

当我在本地主机上使用“ npm run serve”打开vue cli项目时,它可以完美运行。但是,当我运行“ npm run build”并将其部署到firebase或通过“ firebase serve”提供服务时,我的post请求只是通过index.html得到响应。 我在vue.config.js上使用devServer选项

0 个答案:

没有答案