diff --git a/components/staffTabBer/tabBar.vue b/components/staffTabBer/tabBar.vue index 839f21f..421a337 100644 --- a/components/staffTabBer/tabBar.vue +++ b/components/staffTabBer/tabBar.vue @@ -28,7 +28,7 @@ export default{ data(){ return{ - msgSocket: this.$msgSocket, + msgSocket: null, aindex:1, arr:[ {text:'首页'}, @@ -45,7 +45,8 @@ this.aindex = this.msg }, mounted() { - console.log(this.aindex); + + this.msgSocket = this.$msgSocket, this.aindex = this.msg }, watch: { diff --git a/components/tabBar/tabBar.vue b/components/tabBar/tabBar.vue index c88306e..5218be3 100644 --- a/components/tabBar/tabBar.vue +++ b/components/tabBar/tabBar.vue @@ -35,10 +35,12 @@