From 68129cd5d03983f66bc08b00e458f56895a0c8c1 Mon Sep 17 00:00:00 2001 From: lingling Date: Mon, 20 Mar 2023 02:14:37 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8A=A0=E5=85=A5=E8=87=AA=E5=8A=A8=E6=B5=8B?= =?UTF-8?q?=E8=AF=95=E6=9C=8D=E5=8A=A1=E5=99=A8=E6=98=AF=E5=90=A6=E5=9C=A8?= =?UTF-8?q?=E7=BA=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/api.ts | 4 ++-- src/components/LinkItem.vue | 22 +++++++++++++++++++--- src/pages/IndexPage.vue | 16 ++++++++++++++-- 3 files changed, 35 insertions(+), 7 deletions(-) diff --git a/src/api/api.ts b/src/api/api.ts index 5dd4945..a560ae1 100644 --- a/src/api/api.ts +++ b/src/api/api.ts @@ -3,8 +3,8 @@ class getdata { async get_server() { return await api.get('https://api.shagain.club/api.php?type=list'); } - async text_server() { - return await api.get('https://api.shagain.club/api.php?type=list'); + async text_server(url: string) { + return await api.post('http://149.129.107.38:1323/textserver', { url }); } } export { getdata }; diff --git a/src/components/LinkItem.vue b/src/components/LinkItem.vue index a96ae65..973b0d7 100644 --- a/src/components/LinkItem.vue +++ b/src/components/LinkItem.vue @@ -1,8 +1,9 @@