Skip to content

Commit 6a2ae64

Browse files
committed
修正语法错误...
1 parent 0277a0f commit 6a2ae64

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/brackets-left.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,15 @@
2828
// 双括号内容生成器
2929
doubleBracketsGenerator (data) {
3030
const isArray = Array.isArray(data)
31-
const brackets = isArray ? '[...]' : '{...}'
31+
let brackets = isArray ? '[...]' : '{...}'
3232
if (this.showLength) {
3333
// 若展示长度, 形如 [...] // 3 items
3434
const text = isArray
3535
? `${data.length} items`
3636
: `${Object.keys(data).length} keys`
3737
brackets += ` // ${text}`
3838
}
39-
return bracketsFormatter(brackets)
39+
return this.bracketsFormatter(brackets)
4040
}
4141
}
4242
}

0 commit comments

Comments
 (0)