This commit is contained in:
jiangs 2025-10-28 16:23:11 +08:00
parent 4f77b2c60e
commit 1f5b5533d5

View File

@ -40,8 +40,8 @@ export default defineConfig(({
proxy: { proxy: {
// https://cn.vitejs.dev/config/#server-proxy // https://cn.vitejs.dev/config/#server-proxy
'/dev-api': { '/dev-api': {
target: 'http://localhost:9801', //target: 'http://localhost:9801',
//target: 'http://47.97.125.165:8904', target: 'http://47.97.125.165:8904',
// target: 'http://192.168.1.114:9801', // target: 'http://192.168.1.114:9801',
changeOrigin: true, changeOrigin: true,
rewrite: (p) => p.replace(/^\/dev-api/, '') rewrite: (p) => p.replace(/^\/dev-api/, '')