mirror of
https://github.com/imsyy/SPlayer.git
synced 2025-11-25 19:37:35 +08:00
fix: 解决 Vercel 刷新 404
This commit is contained in:
@@ -415,10 +415,12 @@ const useMusicDataStore = defineStore("musicData", {
|
||||
},
|
||||
// 添加歌曲至播放列表
|
||||
addSongToPlaylists(value, play = true) {
|
||||
// 停止当前播放
|
||||
if (typeof $player !== "undefined") soundStop($player);
|
||||
// 判断与上一次播放歌曲是否一致
|
||||
const index = this.persistData.playlists.findIndex(
|
||||
(o) => o.id === value.id
|
||||
);
|
||||
// 判断与上一次播放歌曲是否一致
|
||||
try {
|
||||
if (
|
||||
value.id !==
|
||||
|
||||
3
vercel.json
Normal file
3
vercel.json
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"rewrites": [{ "source": "/:path*", "destination": "/index.html" }]
|
||||
}
|
||||
Reference in New Issue
Block a user