修复潜在报错

pull/733/head
lyswhut 2021-12-09 17:51:51 +08:00
parent 2a64ead1c4
commit dff18b6b9d
1 changed files with 1 additions and 1 deletions

View File

@ -15,7 +15,7 @@ export default ({ isPlay, lyric }) => {
let isSetedLines = false
const handleScrollLrc = () => {
if (!dom_lines?.length) return
if (!dom_lines?.length || !dom_lyric.value) return
if (cancelScrollFn) {
cancelScrollFn()
cancelScrollFn = null