|
@@ -23,11 +23,11 @@ function isIPAddress(hostname:string) {
|
|
|
|
|
|
const hostname = window.location.hostname;
|
|
const hostname = window.location.hostname;
|
|
|
|
|
|
-if (isIPAddress(hostname)) {
|
|
|
|
- baseURL= `http://${hostname}:8080/`
|
|
|
|
-} else {
|
|
|
|
- baseURL= `/apiServe`
|
|
|
|
-}
|
|
|
|
|
|
+// if (isIPAddress(hostname)) {
|
|
|
|
+// baseURL= `http://${hostname}:8080/`
|
|
|
|
+// } else {
|
|
|
|
+// baseURL= `/apiServe`
|
|
|
|
+// }
|
|
enum errorCode {
|
|
enum errorCode {
|
|
'请求错误' = 400,
|
|
'请求错误' = 400,
|
|
'未授权,请重新登录' = 401,
|
|
'未授权,请重新登录' = 401,
|