1.在项目目录的src文件夹下新建providers文件夹,在该文件夹内新建http-service.js文件,内容如下代码块: import axios from 'axios'; axios.defaults.timeout = 5000; axios.defaults.baseURL ='http://www.baidu.com'; //填写域名 //http request 拦截器 axios.interceptors.request.use( config => { config.data = JSON.stringi
2024-11-28 17:20:36
# 重要:history 模式核心配置 location / { try_files $uri $uri/ /index.html; } # 代理 h5腾讯地图查询接口代理 location ^~ /ws/ { # 目标代理地址,末尾的 / 确保路径拼接正确 proxy_pass https://apis.map.qq.com/ws/; # 基础代理头配置 proxy_set_header Host apis.map.qq.com;
2026-06-10 10:01:33