[fix] 支持页面话操作网络代理

This commit is contained in:
wujiawei 2024-01-16 15:08:27 +08:00
parent 6980426dc0
commit 62ecd2f987
3 changed files with 214 additions and 214 deletions

View File

@ -1,51 +1,51 @@
module.exports = { module.exports = {
cloudClientFindPage: { cloudClientFindPage: {
url: "/acw-server/netty/client/state/findPage", url: "/wu-lazy-cloud-network/netty/client/state/findPage",
type: "get", type: "get",
}, },
cloudClientFindList: { cloudClientFindList: {
url: "/acw-server/netty/client/state/findList", url: "/wu-lazy-cloud-network/netty/client/state/findList",
type: "get", type: "get",
}, },
cloudClientDelete: { cloudClientDelete: {
url: "/acw-server/netty/client/state/remove", url: "/wu-lazy-cloud-network/netty/client/state/remove",
type: "delete", type: "delete",
}, },
visitorPage: { visitorPage: {
url: "/acw-server/netty/server/visitor/findPage", url: "/wu-lazy-cloud-network/netty/server/visitor/findPage",
type: "get", type: "get",
}, },
visitorList: { visitorList: {
url: "/acw-server/netty/server/visitor/findList", url: "/wu-lazy-cloud-network/netty/server/visitor/findList",
type: "get", type: "get",
}, },
visitorDelete: { visitorDelete: {
url: "/acw-server/netty/server/visitor/remove", url: "/wu-lazy-cloud-network/netty/server/visitor/remove",
type: "delete", type: "delete",
}, },
visitorSave: { visitorSave: {
url: "/acw-server/netty/server/visitor/story", url: "/wu-lazy-cloud-network/netty/server/visitor/story",
type: "post", type: "post",
}, },
visitorUpdate: { visitorUpdate: {
url: "/acw-server/netty/server/visitor/updateOne", url: "/wu-lazy-cloud-network/netty/server/visitor/updateOne",
type: "put", type: "put",
}, },
networkMappingPage: { networkMappingPage: {
url: "/acw-server/internal/network/penetration/mapping/findPage", url: "/wu-lazy-cloud-network/internal/network/penetration/mapping/findPage",
type: "get", type: "get",
}, },
networkMappingDelete: { networkMappingDelete: {
url: "/acw-server/internal/network/penetration/mapping/remove", url: "/wu-lazy-cloud-network/internal/network/penetration/mapping/remove",
type: "delete", type: "delete",
}, },
networkMappingSave: { networkMappingSave: {
url: "/acw-server/internal/network/penetration/mapping/story", url: "/wu-lazy-cloud-network/internal/network/penetration/mapping/story",
type: "post", type: "post",
}, },
networkMappingUpdate: { networkMappingUpdate: {
url: "/acw-server/internal/network/penetration/mapping/updateOne", url: "/wu-lazy-cloud-network/internal/network/penetration/mapping/updateOne",
type: "put", type: "put",
}, },
}; };

File diff suppressed because it is too large Load Diff

View File

@ -11,7 +11,7 @@ module.exports = {
devServer: { devServer: {
port: "28080", // 请求地址的端口号在本项目是8080 port: "28080", // 请求地址的端口号在本项目是8080
proxy: { proxy: {
"/acw-server/": { "/wu-lazy-cloud-network/": {
// 'demo'是请求地址中以demo开头都适用这个 // 'demo'是请求地址中以demo开头都适用这个
// target: "http://47.92.27.215:520/", // 真实的服务器地址 // target: "http://47.92.27.215:520/", // 真实的服务器地址
target: "http://127.0.0.1:6001", // 真实的服务器地址 target: "http://127.0.0.1:6001", // 真实的服务器地址
@ -20,7 +20,7 @@ module.exports = {
ws: false, // 是否启用websockets ws: false, // 是否启用websockets
// 是否重写 // 是否重写
pathRewrite: { pathRewrite: {
"^/acw-server": "/", "^/wu-lazy-cloud-network": "/",
}, },
}, },
"/": { "/": {