/* * @Description: file content * @Version: 2.0 * @Author: ljl * @Date: 2022-06-24 16:42:34 * @LastEditors: ljl * @LastEditTime: 2022-07-08 11:37:54 * @FilePath: \sui-shen-ban_alipay\vue.config.js */ const { defineConfig } = require('@vue/cli-service') module.exports = defineConfig({ publicPath: './', transpileDependencies: true, // devServer: { // // port:8080, // // open: true, // // overlay: { // // warnings: false, // // errors: true // // }, // proxy: { // '/api': {// 匹配所有以 '/api1'开头的请求路径 // target: 'https://key.cnrailwaycloud.com:18181/api/gateway',// 代理目标的基础路径 // changeOrigin: true, // pathRewrite: { '^/api': '' } // }, // '/api2': {// 匹配所有以 '/api2'开头的请求路径 // target: 'http://localhost:5001',// 代理目标的基础路径 // changeOrigin: true, // pathRewrite: { '^/api2': '' } // } // } // } })