Skip to content

Commit

Permalink
fix: poster img size
Browse files Browse the repository at this point in the history
  • Loading branch information
leon-kfd committed Nov 3, 2023
1 parent 5859d0e commit f9cbe10
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/g-audio.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { useContext, useEffect, useRef, useState } from "react";
import React, { useEffect, useRef, useState } from "react";
import { MusicVisualizer } from '../plugins/MusicVisualizer'
import style from './g-audio.module.scss'
import SLine from './s-line'
Expand Down Expand Up @@ -82,7 +82,7 @@ export default function GAudio() {
console.log('picURL', picURL)
musicName = `${name} - ${artist}`
musicURL = url
posterPic = picURL.split('?')[0]
posterPic = picURL.split('?')[0] + `?param=400y400`
// setGlobalState({ mainColor: `#${~~(Math.random() * 1000000)}`})
} else {
const transferTarget = encodeURIComponent(`https://api.wqwlkj.cn/wqwlapi/wyy_random.php?type=json`)
Expand Down

0 comments on commit f9cbe10

Please sign in to comment.