From a969126ac530da96b1edb02152db87f0ad317f6e Mon Sep 17 00:00:00 2001 From: zmc <zmc_li@foxmail.com> Date: 星期三, 22 十一月 2023 13:20:17 +0800 Subject: [PATCH] 1. 传递相对路径 2.使用循环展示异常卡片 3.飞行巡检写成组件 --- src/api/index.js | 8 +++++--- 1 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/api/index.js b/src/api/index.js index 41cd230..00d6e27 100644 --- a/src/api/index.js +++ b/src/api/index.js @@ -1,9 +1,10 @@ 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://114.215.109.124:8803/'; +// const url = 'http://192.168.1.8:8081/'; //椋炵窘鐩戠 const $http = axios.create({ @@ -11,8 +12,9 @@ timeout: 10000 }); -/* Python鍚庡彴 */ + +/* Python鍚庡彴 */ const url_py = 'http://127.0.0.1:8089/' const $http_py = axios.create({ baseURL: url_py, -- Gitblit v1.9.3