mirror of
https://github.com/ikun0014/lx-music-mobile.git
synced 2025-05-23 22:37:41 +08:00
clean code
This commit is contained in:
parent
95b38c8578
commit
03a70c8cb0
@ -132,14 +132,11 @@ export default forwardRef<MusicDownloadModalType, MusicDownloadModalProps>(({ on
|
||||
}
|
||||
useImperativeHandle(ref, () => ({
|
||||
show(info) {
|
||||
console.log("useImperativeHandle");
|
||||
console.log(info);
|
||||
selectedInfo.current = info
|
||||
calcQualitys();
|
||||
if (visible) {
|
||||
calcQualitys();
|
||||
handleShow()
|
||||
} else {
|
||||
calcQualitys();
|
||||
setVisible(true)
|
||||
requestAnimationFrame(() => {
|
||||
handleShow()
|
||||
|
Loading…
x
Reference in New Issue
Block a user