20241113-a

This commit is contained in:
unknown
2024-11-13 09:05:45 +08:00
commit 3bcaa20bc4
186 changed files with 100169 additions and 0 deletions

18
src/setupProxy.js Normal file
View File

@@ -0,0 +1,18 @@
const { createProxyMiddleware } = require('http-proxy-middleware');
module.exports = function (app) {
app.use(
'/api',
// '/changzhou/api',
createProxyMiddleware({
target: 'http://192.168.0.20',
changeOrigin: true,
})
);
app.use(
'/res',
createProxyMiddleware({
target: 'http://192.168.0.20',
changeOrigin: true,
})
);
};