From b8b2820d1a0a55a5555434a3ec95f8bbec1db06d Mon Sep 17 00:00:00 2001 From: zmc <zmc_li@foxmail.com> Date: 星期四, 14 十二月 2023 15:22:54 +0800 Subject: [PATCH] 1.飞行巡检和审核辅助页面中的对话框写成组件 2.增加了数据请求和异常分析配置参数的可视化页面 3.修改了站点输入框,使能够模糊匹配 --- src/api/index.js | 23 +++++++++++------------ 1 files changed, 11 insertions(+), 12 deletions(-) diff --git a/src/api/index.js b/src/api/index.js index 75b646c..7e57bff 100644 --- a/src/api/index.js +++ b/src/api/index.js @@ -1,26 +1,25 @@ -import axios from 'axios'; -import { setInterceptors } from './config'; +import axios from 'axios' +import { setInterceptors } from './config' -// const url = 'http://localhost:8081/'; +const url = 'http://localhost:8081/' // 閮ㄧ讲 -const url = 'http://114.215.109.124:8803/'; -// const url = 'http://192.168.1.8:8081/'; +// const url = 'http://114.215.109.124:8803/'; +// const url = 'http://192.168.0.123:8081/' //椋炵窘鐩戠 const $http = axios.create({ baseURL: url, timeout: 10000 -}); - - +}) /* 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}; +//娣诲姞鎷︽埅鍣� +setInterceptors($http, $http_py) + +export { $http, $http_py, url } -- Gitblit v1.9.3