From 4cc3befc0727c7e08e32d77a747b70b495d21eac Mon Sep 17 00:00:00 2001 From: lingling <1077478963@qq.com> Date: Thu, 5 Dec 2024 20:58:06 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=90=8E=E7=AB=AFapi?= =?UTF-8?q?=E7=A8=8B=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Util/comm.ts | 2 +- src/api/api.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Util/comm.ts b/src/Util/comm.ts index c53635a..dad8f48 100644 --- a/src/Util/comm.ts +++ b/src/Util/comm.ts @@ -1,4 +1,4 @@ -import { copyToClipboard, QVueGlobals, useQuasar } from 'quasar' +import { copyToClipboard, QVueGlobals } from 'quasar' /** diff --git a/src/api/api.ts b/src/api/api.ts index 47434d5..cd5054c 100644 --- a/src/api/api.ts +++ b/src/api/api.ts @@ -1,7 +1,7 @@ import { api } from 'src/boot/axios'; class getdata { async get_server() { - return await api.get('https://api.giaogiao.uk/api.php?type=list'); + return await api.get('https://api.giaogiao.uk/server/getlist'); } async text_server(url: string) { const res = await api.post( @@ -13,7 +13,7 @@ class getdata { return tmp } async get_country(ip: string) { - let res = await api.post('https://api.giaogiao.uk/api.php?type=searchip', { + let res = await api.post('https://api.giaogiao.uk/server/searchip', { ip, }); res = res.data.country