From 72085226bc9f82a9129b8fbcd17fab1edf9ef270 Mon Sep 17 00:00:00 2001 From: riku <risaku@163.com> Date: 星期五, 05 一月 2024 15:08:19 +0800 Subject: [PATCH] 1. 修复飞行巡检模块中有效率异常详情弹出框无法正常显示的bug; 2.优化各异常类型的折线图配置项生成逻辑; --- src/api/index.js | 17 +++++++++-------- 1 files changed, 9 insertions(+), 8 deletions(-) diff --git a/src/api/index.js b/src/api/index.js index 41cd230..2ae6d75 100644 --- a/src/api/index.js +++ b/src/api/index.js @@ -1,24 +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://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