mirror of
https://github.com/algerkong/AlgerMusicPlayer.git
synced 2026-04-23 23:57:22 +08:00
✨ feat: 修改样式和启动命令
This commit is contained in:
@@ -137,8 +137,7 @@ defineExpose({
|
||||
|
||||
.music-lrc {
|
||||
background-color: inherit;
|
||||
min-width: 400px;
|
||||
max-width: 800px;
|
||||
width: 500px;
|
||||
height: 550px;
|
||||
|
||||
&-text {
|
||||
|
||||
@@ -82,7 +82,7 @@
|
||||
|
||||
<script lang="ts" setup>
|
||||
import type { SongResult } from '@/type/music'
|
||||
import { secondToMinute, getImgUrl } from '@/utils'
|
||||
import { secondToMinute, getImgUrl, getIsMc } from '@/utils'
|
||||
import { computed, onMounted, ref, watch } from 'vue'
|
||||
import { useStore } from 'vuex'
|
||||
import { setAnimationClass } from '@/utils'
|
||||
@@ -107,7 +107,7 @@ const playMusicUrl = ref('')
|
||||
watch(
|
||||
() => store.state.playMusicUrl,
|
||||
async (value, oldValue) => {
|
||||
const isUrlHasMc = location.href.includes('mc.')
|
||||
const isUrlHasMc = getIsMc()
|
||||
if (value && isUrlHasMc) {
|
||||
let playMusicUrl1 = value as string
|
||||
if (!ProxyUrl) {
|
||||
|
||||
Reference in New Issue
Block a user