路由修改

This commit is contained in:
仲么了
2024-01-05 14:02:22 +08:00
parent b2c3df56dc
commit 5b42718d6f
9 changed files with 83 additions and 56 deletions

View File

@@ -9,13 +9,8 @@ export default defineConfig({
server: {
proxy: {
'/api': {
// target: "http://192.168.1.115:10215", //黄正剑
// target: "http://192.168.1.22:10215", //超高压
target: 'http://192.168.1.81:10215', //数据中心
// target: "http://192.168.1.13:10215", //治理
// target: 'http://192.168.1.24:10215', // 河北
// target: "http://192.168.1.31:10215", // 海南
// target: "http://192.168.1.29:10215", // 冀北
// target: 'http://192.168.1.81:10215', //数据中心
target: 'https://pqmcn.com:8092/api', //数据中心
changeOrigin: true,
rewrite: path => path.replace(/^\/api/, '') //路径重写,把'/api'替换为''
}