From 7466fcf08fecb7aac8cb2e963ed74f4250e68870 Mon Sep 17 00:00:00 2001 From: tzy Date: Sat, 19 Jul 2025 08:51:50 +0800 Subject: [PATCH] =?UTF-8?q?feat(system):=E4=B8=8B=E5=8F=91=E5=9B=BE?= =?UTF-8?q?=E7=BA=B8=E6=A8=A1=E5=9D=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/external-api.js | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 src/utils/external-api.js diff --git a/src/utils/external-api.js b/src/utils/external-api.js new file mode 100644 index 0000000..875bbaa --- /dev/null +++ b/src/utils/external-api.js @@ -0,0 +1,15 @@ +/** + * 外部接口调用通用方法 + */ +import axios from "axios"; + +export function getstate() { + + return axios.get('/all/getstate?UTF-8') + .then(response => { + return response.data; + }) + .catch(error => { + console.error('API 请求失败:', error); + }); +} \ No newline at end of file