压缩字符

This commit is contained in:
Harvey committed 2019-11-28 10:56:53 +08:00
1 parent 7ff61b4660
commit 0cf455ced3
27 files changed
+171 -239

No files matched your search

+3 -2
View File
@@ -4,6 +4,7 @@ export default function playMix(art, player) {
const {
i18n,
notice,
constructor: { instances },
option: { mutex },
template: { $video },
} = art;
@@ -12,7 +13,7 @@ export default function playMix(art, player) {
set(value) {
if (value) {
const promise = $video.play();
if (promise !== undefined) {
if (promise.then) {
promise.then().catch(err => {
notice.show = err;
throw err;
@@ -20,7 +21,7 @@ export default function playMix(art, player) {
}
if (mutex) {
art.constructor.instances
instances
.filter(item => item !== art)
.forEach(item => {
item.player.pause = true;