From 49d84fff69481b203cedebd92f1ea605c8a2bef2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=81=AF=E7=81=AB=E4=B8=8D=E4=BC=91=E6=97=B6?= Date: Thu, 19 Oct 2023 08:55:55 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E9=A1=B5=E8=84=9A=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E4=B8=80=E8=A8=80=E6=98=BE=E7=A4=BA=EF=BC=8C=E5=A4=A9=E6=B0=94?= =?UTF-8?q?=E5=B7=A6=E4=BE=A7=E6=B7=BB=E5=8A=A0=E5=9F=8E=E5=B8=82=E4=BF=A1?= =?UTF-8?q?=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/index.js | 11 ++++++++++ src/components/Footer.vue | 37 ++++++++++++++++++++++++++++++++-- src/components/WeatherTime.vue | 5 +++++ 3 files changed, 51 insertions(+), 2 deletions(-) diff --git a/src/api/index.js b/src/api/index.js index 2cf2f7f..3e47dab 100644 --- a/src/api/index.js +++ b/src/api/index.js @@ -34,3 +34,14 @@ export const getSearchSuggestions = async (keyWord) => { return null; } }; + +/** + * 获取一言文案 + * https://developer.hitokoto.cn/ + */ +export const getHitokoto = () => { + return axios({ + method: "GET", + url: "https://v1.hitokoto.cn", + }); +}; \ No newline at end of file diff --git a/src/components/Footer.vue b/src/components/Footer.vue index 897644e..7f2ed76 100644 --- a/src/components/Footer.vue +++ b/src/components/Footer.vue @@ -1,5 +1,8 @@