Browse Source

修改关闭后还在播放的问题

lex 1 year ago
parent
commit
cae0eae3f6
1 changed files with 4 additions and 1 deletions
  1. 4 1
      src/views/xiaoku-music/index.tsx

+ 4 - 1
src/views/xiaoku-music/index.tsx

@@ -465,7 +465,10 @@ export default defineComponent({
             <img
               src={icon_close}
               class={styles.previewClose}
-              onClick={() => (data.previewModal = false)}
+              onClick={() => {
+                data.previewModal = false;
+                data.previewUrl = '';
+              }}
             />
 
             <iframe