fix: 修复类型问题

This commit is contained in:
alger
2025-04-01 23:34:17 +08:00
parent ad8f7af3a9
commit 7b27cf5bc6
3 changed files with 2 additions and 5 deletions

View File

@@ -117,7 +117,6 @@
<script setup lang="ts">
import { computed, provide, ref, useTemplateRef } from 'vue';
import { useI18n } from 'vue-i18n';
import SongItem from '@/components/common/SongItem.vue';
import { allTime, artistList, nowTime, playMusic } from '@/hooks/MusicHook';
@@ -129,7 +128,6 @@ import { getImgUrl } from '@/utils';
const playerStore = usePlayerStore();
const settingsStore = useSettingsStore();
const { t } = useI18n();
const { navigateToArtist } = useArtist();
withDefaults(

View File

@@ -153,14 +153,13 @@ import { computed, ref, watch } from 'vue';
import SongItem from '@/components/common/SongItem.vue';
import { allTime, artistList, nowTime, playMusic, sound, textColors } from '@/hooks/MusicHook';
import MusicFull from '@/layout/components/MusicFull.vue';
import { audioService } from '@/services/audioService';
import { usePlayerStore } from '@/store/modules/player';
import { useSettingsStore } from '@/store/modules/settings';
import type { SongResult } from '@/type/music';
import { getImgUrl, secondToMinute, setAnimationClass } from '@/utils';
import MusicFull from './MusicFull.vue';
const playerStore = usePlayerStore();
const settingsStore = useSettingsStore();

View File

@@ -60,7 +60,7 @@ const router = createRouter({
});
// 添加全局前置守卫
router.beforeEach((to, from, next) => {
router.beforeEach((to, _, next) => {
const settingsStore = getSettingsStore();
// 如果是迷你模式