From fdd43c9bdd4ed9c08d5d649a7f41c2db21c06752 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=99=E8=90=8C?= <525441437@qq.com> Date: Sun, 8 Oct 2023 10:38:08 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B1=95=E7=A4=BA=E9=A1=B5=E9=9D=A2=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=E4=B8=BA=E6=8C=89=E9=92=AE=E5=88=B7=E6=96=B0=E6=95=B0?= =?UTF-8?q?=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main.js | 5 ++++- src/utils/util.js | 0 src/views/HomeView.vue | 42 ++++++++++++++++++++++----------------- src/views/page/status.vue | 20 ++++++++++--------- 4 files changed, 39 insertions(+), 28 deletions(-) create mode 100644 src/utils/util.js diff --git a/src/main.js b/src/main.js index 58ad341..e5ab2c4 100644 --- a/src/main.js +++ b/src/main.js @@ -19,5 +19,8 @@ import 'videojs-contrib-hls'; // 引入支持HLS的插件 new Vue({ router, store, - render: h => h(App) + render: h => h(App), + beforeCreate(){ + Vue.prototype.$bus=this + }, }).$mount('#app') diff --git a/src/utils/util.js b/src/utils/util.js new file mode 100644 index 0000000..e69de29 diff --git a/src/views/HomeView.vue b/src/views/HomeView.vue index 2f9c29b..0156e18 100644 --- a/src/views/HomeView.vue +++ b/src/views/HomeView.vue @@ -5,6 +5,7 @@
返回
+
数据刷新