mirror of
https://github.com/algerkong/AlgerMusicPlayer.git
synced 2026-04-28 10:57:23 +08:00
fix: 修复类型问题
This commit is contained in:
@@ -117,7 +117,6 @@
|
|||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { computed, provide, ref, useTemplateRef } from 'vue';
|
import { computed, provide, ref, useTemplateRef } from 'vue';
|
||||||
import { useI18n } from 'vue-i18n';
|
|
||||||
|
|
||||||
import SongItem from '@/components/common/SongItem.vue';
|
import SongItem from '@/components/common/SongItem.vue';
|
||||||
import { allTime, artistList, nowTime, playMusic } from '@/hooks/MusicHook';
|
import { allTime, artistList, nowTime, playMusic } from '@/hooks/MusicHook';
|
||||||
@@ -129,7 +128,6 @@ import { getImgUrl } from '@/utils';
|
|||||||
|
|
||||||
const playerStore = usePlayerStore();
|
const playerStore = usePlayerStore();
|
||||||
const settingsStore = useSettingsStore();
|
const settingsStore = useSettingsStore();
|
||||||
const { t } = useI18n();
|
|
||||||
const { navigateToArtist } = useArtist();
|
const { navigateToArtist } = useArtist();
|
||||||
|
|
||||||
withDefaults(
|
withDefaults(
|
||||||
|
|||||||
@@ -153,14 +153,13 @@ import { computed, ref, watch } from 'vue';
|
|||||||
|
|
||||||
import SongItem from '@/components/common/SongItem.vue';
|
import SongItem from '@/components/common/SongItem.vue';
|
||||||
import { allTime, artistList, nowTime, playMusic, sound, textColors } from '@/hooks/MusicHook';
|
import { allTime, artistList, nowTime, playMusic, sound, textColors } from '@/hooks/MusicHook';
|
||||||
|
import MusicFull from '@/layout/components/MusicFull.vue';
|
||||||
import { audioService } from '@/services/audioService';
|
import { audioService } from '@/services/audioService';
|
||||||
import { usePlayerStore } from '@/store/modules/player';
|
import { usePlayerStore } from '@/store/modules/player';
|
||||||
import { useSettingsStore } from '@/store/modules/settings';
|
import { useSettingsStore } from '@/store/modules/settings';
|
||||||
import type { SongResult } from '@/type/music';
|
import type { SongResult } from '@/type/music';
|
||||||
import { getImgUrl, secondToMinute, setAnimationClass } from '@/utils';
|
import { getImgUrl, secondToMinute, setAnimationClass } from '@/utils';
|
||||||
|
|
||||||
import MusicFull from './MusicFull.vue';
|
|
||||||
|
|
||||||
const playerStore = usePlayerStore();
|
const playerStore = usePlayerStore();
|
||||||
const settingsStore = useSettingsStore();
|
const settingsStore = useSettingsStore();
|
||||||
|
|
||||||
|
|||||||
@@ -60,7 +60,7 @@ const router = createRouter({
|
|||||||
});
|
});
|
||||||
|
|
||||||
// 添加全局前置守卫
|
// 添加全局前置守卫
|
||||||
router.beforeEach((to, from, next) => {
|
router.beforeEach((to, _, next) => {
|
||||||
const settingsStore = getSettingsStore();
|
const settingsStore = getSettingsStore();
|
||||||
|
|
||||||
// 如果是迷你模式
|
// 如果是迷你模式
|
||||||
|
|||||||
Reference in New Issue
Block a user