diff --git a/src/pages/modules/errormanage/ErrorInfo.vue b/src/pages/modules/errormanage/ErrorInfo.vue index ccd4304..64fbea8 100644 --- a/src/pages/modules/errormanage/ErrorInfo.vue +++ b/src/pages/modules/errormanage/ErrorInfo.vue @@ -30,6 +30,8 @@ export default { name: 'ErrorManage', data () { return { + interTime: this.$store.getters.setTime, + timer: null, pkId: '', dataList: [] // dataList: [ @@ -65,8 +67,17 @@ export default { }, created () { this.initData() + this.refresh() + }, + beforeDestroy () { + clearInterval(this.timer) }, methods: { + refresh () { + this.timer = setInterval(() => { + this.initData() + }, this.interTime) + }, async initData () { let res = await querryError() if (res.code === '1') { diff --git a/src/pages/modules/home/home.vue b/src/pages/modules/home/home.vue index bb8f454..6ec2bff 100644 --- a/src/pages/modules/home/home.vue +++ b/src/pages/modules/home/home.vue @@ -126,8 +126,8 @@ export default { position relative width 4.5rem height 4.5rem - // background center / 100% 100% url(../../../images/aio/car2.png) no-repeat - background center / 100% 100% url(../../../images/aio/AGV223.gif) no-repeat + background center / 100% 100% url(../../../images/aio/car2.png) no-repeat + // background center / 100% 100% url(../../../images/aio/AGV223.gif) no-repeat margin-left .95rem margin-right .95rem margin-top 1.1rem