docs: player load

This commit is contained in:
DIYgod
2019-06-16 20:26:46 +08:00
parent edb242c0cb
commit 3e73d71266
+1 -7
View File
@@ -79,13 +79,7 @@ export default {
},
mounted: function () {
if (this.immediate) {
if (!window) {
this.dplayer = new DPlayer(this.options);
} else {
window.onload = () => {
this.dplayer = new DPlayer(this.options);
}
}
this.dplayer = new DPlayer(this.options);
}
},
beforeDestroy: function () {