自动填充API功能不再需要手动清理垃圾数据

This commit is contained in:
pixel
2020-11-06 14:42:26 +08:00
parent 0a4e81138a
commit 2f97f4b979
6 changed files with 42 additions and 29 deletions

View File

@@ -23,7 +23,7 @@ module.exports = {
// 把key的路径代理到target位置
// detail: https://cli.vuejs.org/config/#devserver-proxy
[process.env.VUE_APP_BASE_API]: { //需要代理的路径 例如 '/api'
target: `http://139.9.113.229:8888/`, //代理到 目标路径
target: `http://127.0.0.1:8888/`, //代理到 目标路径
changeOrigin: true,
pathRewrite: { // 修改路径数据
['^' + process.env.VUE_APP_BASE_API]: '' // 举例 '^/api:""' 把路径中的/api字符串删除