diff --git a/src/hooks/MusicHook.ts b/src/hooks/MusicHook.ts index 584a2ff..2071c78 100644 --- a/src/hooks/MusicHook.ts +++ b/src/hooks/MusicHook.ts @@ -1,8 +1,6 @@ import { computed, ref } from 'vue'; -import { getMusicLrc } from '@/api/music'; import store from '@/store'; -import { ILyric } from '@/type/lyric'; import type { ILyricText, SongResult } from '@/type/music'; const windowData = window as any; diff --git a/src/layout/components/SearchBar.vue b/src/layout/components/SearchBar.vue index c9d1e18..b07759f 100644 --- a/src/layout/components/SearchBar.vue +++ b/src/layout/components/SearchBar.vue @@ -35,6 +35,14 @@ />
登录
+ + +
前往 Github
+
@@ -45,6 +53,7 @@ import { useStore } from 'vuex'; import { getSearchKeyword } from '@/api/home'; import { getUserDetail, logout } from '@/api/login'; import { SEARCH_TYPES, USER_SET_OPTIONS } from '@/const/bar-const'; +import { isElectron } from '@/hooks/MusicHook'; import { getImgUrl } from '@/utils'; const router = useRouter(); @@ -135,6 +144,10 @@ const selectItem = async (key: string) => { default: } }; + +const toGithub = () => { + window.open('https://github.com/algerkong/AlgerMusicPlayer', '_blank'); +};