From 668f251a5c8099d7edec59f40d1311a6785ef10c Mon Sep 17 00:00:00 2001 From: riku <risaku@163.com> Date: 星期二, 21 五月 2024 14:40:58 +0800 Subject: [PATCH] 新增线索结论修改功能 --- src/api/index.js | 33 +++++++++++++++++++++++++++++++++ 1 files changed, 33 insertions(+), 0 deletions(-) diff --git a/src/api/index.js b/src/api/index.js index e69de29..e42338e 100644 --- a/src/api/index.js +++ b/src/api/index.js @@ -0,0 +1,33 @@ +import axios from 'axios'; +import { setInterceptors } from "./config"; + +const url = 'http://47.100.191.150:9031/'; +// const url = 'http://192.168.0.138:8083/'; +const imgUrl = 'http://47.100.191.150:9031/images/'; + +//椋炵窘鐩戠 +const $clue = axios.create({ + baseURL: url, + timeout: 10000 + // headers: addHeaders() +}); + +// function getHeaders() { +// const token = 'e6dc8bb9e1ff0ce973fb92b4af2e4c3f'; + +// const date = new Date(); +// const timestamp = parseInt(date.getTime() / 1000) - 200; + +// const sign = md5(timestamp + token); + +// return { +// 'JA-TIMESTAMP': timestamp, +// 'JA-SIGN': sign, +// 'JA-TOKEN': token +// }; +// } + +//娣诲姞鎷︽埅鍣� +setInterceptors($clue) + +export { $clue, imgUrl }; -- Gitblit v1.9.3