From be94711dc823d94a8a72e178feb9305a1e38fccc Mon Sep 17 00:00:00 2001 From: imsyy Date: Fri, 3 Nov 2023 09:23:06 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=94=AF=E6=8C=81=E9=85=8D=E7=BD=AE?= =?UTF-8?q?=E9=9F=B3=E4=B9=90=E6=92=AD=E6=94=BE=E5=99=A8=E5=BC=80=E5=85=B3?= =?UTF-8?q?=20#209?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env | 4 ++-- README.md | 2 +- package.json | 2 +- src/components/Hitokoto.vue | 10 ++++++---- src/views/Func/index.vue | 5 ++++- 5 files changed, 14 insertions(+), 9 deletions(-) diff --git a/.env b/.env index d5d3960..e9342b8 100644 --- a/.env +++ b/.env @@ -47,5 +47,5 @@ VITE_SONG_API = "https://api-meting.imsyy.top/api" VITE_SONG_SERVER = "netease" # 播放类型 ( song-歌曲, playlist-播放列表, album-专辑, search-搜索, artist-艺术家 ) VITE_SONG_TYPE = "playlist" -# 播放 ID -VITE_SONG_ID = "7452421335" \ No newline at end of file +# 播放 ID ( 若无需播放器,请设为空即可 ) +VITE_SONG_ID = "" \ No newline at end of file diff --git a/README.md b/README.md index 75ae661..135e3f6 100644 --- a/README.md +++ b/README.md @@ -207,7 +207,7 @@ if (type == 0) { * [高德开放平台](https://lbs.amap.com/) * [Hitokoto 一言](https://hitokoto.cn/) * [MetingAPI By 武恩赐](https://api.wuenci.com/meting/api/) -* + ## Star History [![Star History Chart](https://api.star-history.com/svg?repos=imsyy/home&type=Date)](https://star-history.com/#imsyy/home&Date) diff --git a/package.json b/package.json index 62555df..b6c5d58 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "github": "https://github.com/imsyy/home", "home": "https://imsyy.top", "private": true, - "version": "4.1.2", + "version": "4.1.3", "type": "module", "scripts": { "dev": "vite --host", diff --git a/src/components/Hitokoto.vue b/src/components/Hitokoto.vue index a7643df..0897bd6 100644 --- a/src/components/Hitokoto.vue +++ b/src/components/Hitokoto.vue @@ -18,10 +18,12 @@ -
- {{ hitokotoData.text }} - -「 {{ hitokotoData.from }} 」 -
+ +
+ {{ hitokotoData.text }} + -「 {{ hitokotoData.from }} 」 +
+
diff --git a/src/views/Func/index.vue b/src/views/Func/index.vue index d3d23c0..e3775fd 100644 --- a/src/views/Func/index.vue +++ b/src/views/Func/index.vue @@ -5,7 +5,7 @@
- +
@@ -41,6 +41,9 @@ const store = mainStore(); const currentTime = ref({}); const timeInterval = ref(null); +// 播放器 id +const playerHasId = import.meta.env.VITE_SONG_ID; + // 更新时间 const updateTimeData = () => { currentTime.value = getCurrentTime();