diff --git a/src/views/dataManage/dataManage.vue b/src/views/dataManage/dataManage.vue index a6c34f0..214afa9 100644 --- a/src/views/dataManage/dataManage.vue +++ b/src/views/dataManage/dataManage.vue @@ -79,6 +79,8 @@ mounted() { if (this.$route.query && this.$route.query.deviceType) { this.changeTab(this.$route.query.deviceType) + } else { + this.caclActive() } }, methods: { @@ -100,6 +102,7 @@ // 计算那个是当前第一个tab caclActive() { this.activeName = this.showTabList[0].name + console.log(this.showTabList[0].name) } } }