remove player object

This commit is contained in:
zhw2590582 committed 2022-01-07 17:38:10 +08:00
1 parent 59a8ccce81
commit 59400eb3bf
58 files changed
+295 -313

No files matched your search

+5 -5
View File
@@ -1,12 +1,12 @@
import { def } from '../utils';
export default function toggleMix(art, player) {
def(player, 'toggle', {
export default function toggleMix(art) {
def(art, 'toggle', {
value() {
if (player.playing) {
return player.pause();
if (art.playing) {
return art.pause();
} else {
return player.play();
return art.play();
}
},
});