一、在main.js中,配置下咱们访问的Url前缀:vue
main.js
2.在config文件下的index.js中添加以下代码服务器
3。在请求的vue页面中,请求方式post
post请求:3d
重启服务器。便可code