...
|
...
|
@@ -97,7 +97,7 @@ |
97
|
97
|
url: 'pages/alarm/alarm',
|
98
|
98
|
icon: '../../../static/alert-un.png',
|
99
|
99
|
iconFill: '../../../static/alert-yes.png',
|
100
|
|
- badge: this.getAlarmBadge
|
|
100
|
+ badge: this.$store.state.badgeInfo
|
101
|
101
|
},
|
102
|
102
|
{
|
103
|
103
|
name: '我的',
|
...
|
...
|
@@ -125,7 +125,7 @@ |
125
|
125
|
url: 'pages/alarm/alarm',
|
126
|
126
|
icon: '/static/alert-un.png',
|
127
|
127
|
iconFill: '/static/alert-yes.png',
|
128
|
|
- badge: this.getAlarmBadge
|
|
128
|
+ badge: this.$store.state.badgeInfo
|
129
|
129
|
},
|
130
|
130
|
{
|
131
|
131
|
name: '我的',
|
...
|
...
|
@@ -157,7 +157,7 @@ |
157
|
157
|
},
|
158
|
158
|
methods: {
|
159
|
159
|
onTabbar(index) {
|
160
|
|
- this.list[2].badge = this.getAlarmBadge;
|
|
160
|
+ // this.list[2].badge = this.getAlarmBadge;
|
161
|
161
|
|
162
|
162
|
if (this.list[index].url) {
|
163
|
163
|
if (this.path !== this.list[index].url) {
|
...
|
...
|
@@ -173,8 +173,9 @@ |
173
|
173
|
const oldRecord = this.list[2]
|
174
|
174
|
this.$set(this.list, 2, {
|
175
|
175
|
...oldRecord,
|
176
|
|
- badge: newValue
|
|
176
|
+ badge: this.$store.state.badgeInfo
|
177
|
177
|
})
|
|
178
|
+
|
178
|
179
|
}
|
179
|
180
|
}
|
180
|
181
|
};
|
...
|
...
|
|