1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
| import axios from "axios";
|
| /**
| * 连接
| * {json: {"targetIp":"192.168.10.79","targetPort":"192"}, file}
| */
| export const connect = (data) => {
| return axios({
| method: "POST",
| url: "ConnectInf/sendNode",
| headers: {
| "Content-Type": "multipart/form-data"
| },
| data,
| });
| };
|
|
| /**
| * 断开连接
| */
| export const disConnect = () => {
| return axios({
| method: "GET",
| url: "ConnectInf/breakNode",
| });
| };
|
|