完成单曲搜索,其他pr

This commit is contained in:
zilong
2021-11-01 14:44:47 +08:00
parent 82e56c3d51
commit e16176d6ea
8 changed files with 105 additions and 36 deletions

View File

@@ -98,7 +98,7 @@ const stop = async () => {
store.commit("saveSettings", {
songId: null,
});
pubsub.publish('zp.hideSongInfo')
pubsub.publish("zp.hideSongInfo");
}
};
@@ -164,6 +164,10 @@ const favorite = () => {
// console.log(audioEl.value.currentTime);
};
const removeCurrentSong = () => {
pubsub.publish('zp.removeCurrPlayingSong', { id: store.state.settings.songId })
};
let interval;
watch(playing, (val, old) => {
store.state.settings.playing = val;
@@ -268,13 +272,13 @@ onUnmounted(() => {
</n-icon>
</template>
</n-button>
<!-- <n-button circle>
<n-button circle @click="removeCurrentSong">
<template #icon>
<n-icon>
<TrashOutline />
</n-icon>
</template>
</n-button> -->
</n-button>
</n-space>
<!-- </div> -->