feat(for): for

This commit is contained in:
ex_zhangwenlei@exiot.cmcc
2024-01-09 01:03:42 +08:00
parent bea54865ea
commit f34e850ff0
26 changed files with 500 additions and 404 deletions

View File

@@ -14,9 +14,9 @@ const imageDbStore = localforage.createInstance({
const imgUrl=ref('')
const getImageStoreItem=async (item:any)=>{
const getImageStoreItem=async (item:any):Promise<string>=>{
const key=item.id;
const image=await imageDbStore.getItem(key)
const image=await imageDbStore.getItem(key) as string
return image
}

View File

@@ -67,6 +67,7 @@ const enterHome = () => {
onMounted(() => {
currentMusic.value = localMusicListValue.value[0]
onPlayEnd()
// 不使用空格控制audio
})
onUnmounted(() => {
audio.value.removeEventListener('ended', nextPlay)

View File

@@ -0,0 +1,13 @@
<script setup lang='ts'>
</script>
<template>
<div class="fixed z-50 flex items-center justify-center w-10 h-10 rounded-full shadow-lg cursor-pointer right-12 bottom-12 bg-slate-700 hover:bg-slate-600">
<svg-icon name="totop"></svg-icon>
</div>
</template>
<style lang='scss' scoped>
</style>