فهرست منبع

docs: player load

DIYgod 5 سال پیش
والد
کامیت
3e73d71266
1فایلهای تغییر یافته به همراه1 افزوده شده و 7 حذف شده
  1. 1 7
      docs/.vuepress/components/DPlayer.vue

+ 1 - 7
docs/.vuepress/components/DPlayer.vue

@@ -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 () {