Skip to content

Commit 198107c

Browse files
committed
Fix:低级错误
1 parent 9b3dc66 commit 198107c

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

joyqueue-console/joyqueue-portal/src/views/setting/brokerMonitor.vue

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ export default {
7474
render: (h, params) => {
7575
var list = params.item.brokerTopicMonitorRecordList
7676
var html = []
77-
if (list != undefined) {
77+
if (list !== undefined) {
7878
for (var i = 0; i < list.length; i++) {
7979
var p = h('div', list[i].app)
8080
html.push(p)
@@ -89,7 +89,7 @@ export default {
8989
render: (h, params) => {
9090
var list = params.item.brokerTopicMonitorRecordList
9191
var html = []
92-
if (list != undefined) {
92+
if (list !== undefined) {
9393
for (var i = 0; i < list.length; i++) {
9494
var p = h('div', list[i].connections)
9595
html.push(p)
@@ -99,12 +99,12 @@ export default {
9999
}
100100
},
101101
{
102-
title: '出/入对数',
102+
title: '出/入队数',
103103
key: 'brokerTopicMonitorRecordList',
104104
render: (h, params) => {
105105
var list = params.item.brokerTopicMonitorRecordList
106106
var html = []
107-
if (list != undefined) {
107+
if (list !== undefined) {
108108
for (var i = 0; i < list.length; i++) {
109109
var p = h('div', list[i].count)
110110
html.push(p)
@@ -119,7 +119,7 @@ export default {
119119
render: (h, params) => {
120120
var list = params.item.brokerTopicMonitorRecordList
121121
var html = []
122-
if (list != undefined) {
122+
if (list !== undefined) {
123123
for (var i = 0; i < list.length; i++) {
124124
var p = h('div', list[i].totalSize)
125125
html.push(p)
@@ -142,10 +142,10 @@ export default {
142142
},
143143
methods: {
144144
menuChange (item) {
145-
if (item.name == 'consumer') {
145+
if (item.name === 'consumer') {
146146
this.searchData.type = 2
147147
this.getList()
148-
} else if (item.name == 'producer') {
148+
} else if (item.name === 'producer') {
149149
this.searchData.type = 1
150150
this.getList()
151151
} else {

0 commit comments

Comments
 (0)