Browse Source

perf: 修改代理localhost为127.0.0.1以适配部分设备解析localhost异常的问题

master
insistence 7 months ago
parent
commit
2cf5268f7d
  1. 2
      ruoyi-fastapi-frontend/vite.config.js

2
ruoyi-fastapi-frontend/vite.config.js

@ -31,7 +31,7 @@ export default defineConfig(({ mode, command }) => {
proxy: { proxy: {
// https://cn.vitejs.dev/config/#server-proxy // https://cn.vitejs.dev/config/#server-proxy
'/dev-api': { '/dev-api': {
target: 'http://localhost:9099', target: 'http://127.0.0.1:9099',
changeOrigin: true, changeOrigin: true,
rewrite: (p) => p.replace(/^\/dev-api/, '') rewrite: (p) => p.replace(/^\/dev-api/, '')
} }

Loading…
Cancel
Save