mirror of
https://gitee.com/wujiawei1207537021/wu-lazy-cloud-network.git
synced 2025-06-06 21:37:56 +08:00
[fix] 支持页面话操作网络代理
This commit is contained in:
parent
6980426dc0
commit
62ecd2f987
@ -1,51 +1,51 @@
|
||||
module.exports = {
|
||||
cloudClientFindPage: {
|
||||
url: "/acw-server/netty/client/state/findPage",
|
||||
url: "/wu-lazy-cloud-network/netty/client/state/findPage",
|
||||
type: "get",
|
||||
},
|
||||
cloudClientFindList: {
|
||||
url: "/acw-server/netty/client/state/findList",
|
||||
url: "/wu-lazy-cloud-network/netty/client/state/findList",
|
||||
type: "get",
|
||||
},
|
||||
cloudClientDelete: {
|
||||
url: "/acw-server/netty/client/state/remove",
|
||||
url: "/wu-lazy-cloud-network/netty/client/state/remove",
|
||||
type: "delete",
|
||||
},
|
||||
visitorPage: {
|
||||
url: "/acw-server/netty/server/visitor/findPage",
|
||||
url: "/wu-lazy-cloud-network/netty/server/visitor/findPage",
|
||||
type: "get",
|
||||
},
|
||||
visitorList: {
|
||||
url: "/acw-server/netty/server/visitor/findList",
|
||||
url: "/wu-lazy-cloud-network/netty/server/visitor/findList",
|
||||
type: "get",
|
||||
},
|
||||
visitorDelete: {
|
||||
url: "/acw-server/netty/server/visitor/remove",
|
||||
url: "/wu-lazy-cloud-network/netty/server/visitor/remove",
|
||||
type: "delete",
|
||||
},
|
||||
visitorSave: {
|
||||
url: "/acw-server/netty/server/visitor/story",
|
||||
url: "/wu-lazy-cloud-network/netty/server/visitor/story",
|
||||
type: "post",
|
||||
},
|
||||
visitorUpdate: {
|
||||
url: "/acw-server/netty/server/visitor/updateOne",
|
||||
url: "/wu-lazy-cloud-network/netty/server/visitor/updateOne",
|
||||
type: "put",
|
||||
},
|
||||
|
||||
networkMappingPage: {
|
||||
url: "/acw-server/internal/network/penetration/mapping/findPage",
|
||||
url: "/wu-lazy-cloud-network/internal/network/penetration/mapping/findPage",
|
||||
type: "get",
|
||||
},
|
||||
networkMappingDelete: {
|
||||
url: "/acw-server/internal/network/penetration/mapping/remove",
|
||||
url: "/wu-lazy-cloud-network/internal/network/penetration/mapping/remove",
|
||||
type: "delete",
|
||||
},
|
||||
networkMappingSave: {
|
||||
url: "/acw-server/internal/network/penetration/mapping/story",
|
||||
url: "/wu-lazy-cloud-network/internal/network/penetration/mapping/story",
|
||||
type: "post",
|
||||
},
|
||||
networkMappingUpdate: {
|
||||
url: "/acw-server/internal/network/penetration/mapping/updateOne",
|
||||
url: "/wu-lazy-cloud-network/internal/network/penetration/mapping/updateOne",
|
||||
type: "put",
|
||||
},
|
||||
};
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -11,7 +11,7 @@ module.exports = {
|
||||
devServer: {
|
||||
port: "28080", // 请求地址的端口号,在本项目是8080
|
||||
proxy: {
|
||||
"/acw-server/": {
|
||||
"/wu-lazy-cloud-network/": {
|
||||
// 'demo'是请求地址中,以demo开头都适用这个
|
||||
// target: "http://47.92.27.215:520/", // 真实的服务器地址
|
||||
target: "http://127.0.0.1:6001", // 真实的服务器地址
|
||||
@ -20,7 +20,7 @@ module.exports = {
|
||||
ws: false, // 是否启用websockets
|
||||
// 是否重写
|
||||
pathRewrite: {
|
||||
"^/acw-server": "/",
|
||||
"^/wu-lazy-cloud-network": "/",
|
||||
},
|
||||
},
|
||||
"/": {
|
||||
|
Loading…
x
Reference in New Issue
Block a user