clean code

This commit is contained in:
zx 2024-04-22 18:51:48 +08:00
parent 95b38c8578
commit 03a70c8cb0

View File

@ -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()