From 82541a55189fc3e611391ba5ff4342dbe57598dd Mon Sep 17 00:00:00 2001
From: zmc <zmc_li@foxmail.com>
Date: 星期三, 22 十一月 2023 14:39:55 +0800
Subject: [PATCH] 1.用import异常图标 2.修改飞行巡检的时间格式 3.修改了部分网络请求为api函数形式

---
 src/api/index.js |   20 +++++++++++++++-----
 1 files changed, 15 insertions(+), 5 deletions(-)

diff --git a/src/api/index.js b/src/api/index.js
index 81af872..75b646c 100644
--- a/src/api/index.js
+++ b/src/api/index.js
@@ -1,8 +1,10 @@
 import axios from 'axios';
 import { setInterceptors } from './config';
 
-// const url = 'http://47.100.191.150:9031/';
-const url = 'http://192.168.1.4:8081/';
+// const url = 'http://localhost:8081/';
+// 閮ㄧ讲
+const url = 'http://114.215.109.124:8803/';
+// const url = 'http://192.168.1.8:8081/';
 
 //椋炵窘鐩戠
 const $http = axios.create({
@@ -10,7 +12,15 @@
   timeout: 10000
 });
 
-//娣诲姞鎷︽埅鍣�
-setInterceptors($http);
 
-export { $http };
+
+/* Python鍚庡彴 */
+const url_py = 'http://127.0.0.1:8089/'
+const $http_py = axios.create({
+  baseURL: url_py,
+  timeout: 10000
+});
+//娣诲姞鎷︽埅鍣�
+setInterceptors($http,$http_py);
+
+export { $http,$http_py};

--
Gitblit v1.9.3