From 30748ea70f14c675743c7ea54e5c162d4a5e2839 Mon Sep 17 00:00:00 2001 From: riku <risaku@163.com> Date: 星期一, 21 四月 2025 17:31:15 +0800 Subject: [PATCH] 修改多个组件的展示样式 --- src/api/index.js | 34 ++++++++++++++++++++++++++++++++++ 1 files changed, 34 insertions(+), 0 deletions(-) diff --git a/src/api/index.js b/src/api/index.js index e69de29..8c92e9a 100644 --- a/src/api/index.js +++ b/src/api/index.js @@ -0,0 +1,34 @@ +import axios from 'axios'; +import { setInterceptors } from "./config"; + +// const url = 'http://47.100.191.150:9031/'; +const url = 'http://192.168.0.110:8084/'; +// const imgUrl = 'http://47.100.191.150:9031/images/'; +const imgUrl = 'http://192.168.0.110:8084/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