feat(for): for
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
@@ -67,6 +67,7 @@ const enterHome = () => {
|
||||
onMounted(() => {
|
||||
currentMusic.value = localMusicListValue.value[0]
|
||||
onPlayEnd()
|
||||
// 不使用空格控制audio
|
||||
})
|
||||
onUnmounted(() => {
|
||||
audio.value.removeEventListener('ended', nextPlay)
|
||||
|
||||
13
src/components/ToTop/index.vue
Normal file
13
src/components/ToTop/index.vue
Normal 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>
|
||||
Reference in New Issue
Block a user