基本完成歌曲详情

This commit is contained in:
zilong
2021-10-28 22:58:30 +08:00
parent 2701d0cfe7
commit 25af6cfedb
6 changed files with 219 additions and 35 deletions

View File

@@ -0,0 +1,27 @@
<script setup>
import { ref, defineProps, onUnmounted, onDeactivated } from "vue";
import { useRouter } from "vue-router";
const props = defineProps({
album: Object,
onLeave: Function,
});
const router = useRouter();
// console.log(props.artists);
const click = (id) => {
props.onLeave?.();
router.push("/album/" + id);
};
</script>
<template>
<span
@click="click(album.id)"
style="margin-right: 4px; cursor: pointer"
>{{ album.name }}</span
>
</template>
<script></script>
<style></style>