programing client

This commit is contained in:
wzdwc
2020-04-27 22:14:05 +08:00
parent 9aedbd3532
commit 2481f5f2d3
15 changed files with 1422 additions and 152 deletions
+1 -1
View File
@@ -2,7 +2,7 @@ import axios, {AxiosRequestConfig, Method} from 'axios';
import cookie from 'js-cookie';
const request = async ({method = 'post' as Method, url = '', body = {}, timeout = 8000}) => {
const origin = 'http://192.168.0.101:7001/node';
const origin = 'http://192.168.0.103:7001/node';
// const origin = 'http://172.22.72.70:7001/node';
if (!url) {
return Promise.reject('Request url is null!');