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 @@