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, () => ({
|
useImperativeHandle(ref, () => ({
|
||||||
show(info) {
|
show(info) {
|
||||||
console.log("useImperativeHandle");
|
|
||||||
console.log(info);
|
|
||||||
selectedInfo.current = info
|
selectedInfo.current = info
|
||||||
if (visible) {
|
|
||||||
calcQualitys();
|
calcQualitys();
|
||||||
|
if (visible) {
|
||||||
handleShow()
|
handleShow()
|
||||||
} else {
|
} else {
|
||||||
calcQualitys();
|
|
||||||
setVisible(true)
|
setVisible(true)
|
||||||
requestAnimationFrame(() => {
|
requestAnimationFrame(() => {
|
||||||
handleShow()
|
handleShow()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user