diff --git a/public/favicon.ico b/public/favicon.ico index 48117e3..df36fcf 100644 Binary files a/public/favicon.ico and b/public/favicon.ico differ diff --git a/src/assets/image/real-time-44.png b/src/assets/image/real-time-44.png new file mode 100644 index 0000000..0abdcfa Binary files /dev/null and b/src/assets/image/real-time-44.png differ 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/store/index.js b/src/store/index.js index 118986f..7903167 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -61,7 +61,7 @@ export default new Vuex.Store({ { label: '土壤氮含量', value: 41, countType: 0,unit:'mg/kg' }, { label: '土壤磷含量', value: 42, countType: 0,unit:'mg/kg' }, { label: '土壤钾含量', value: 43, countType: 0,unit:'mg/kg' }, - { label: '臭氧', value: 44, countType: 0,unit:'ppm' }, + { label: '管道压力', value: 44, countType: 0,unit:'Kpa' }, { label: '一氧化碳', value: 45, countType: 0,unit:'ppm' }, { label: '氨气', value: 46, countType: 0,unit:'ppm' }, { label: '硫化氢', value: 47, countType: 0,unit:'ppm' }, 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 @@
返回
+
数据刷新