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();