Skip to content

Commit 400a908

Browse files
committed
fix: can not display hash value with unreadable char
1 parent edd7718 commit 400a908

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

frontend/src/components/content_value/ContentValueHash.vue

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ const props = defineProps({
4040
default: -1,
4141
},
4242
value: {
43-
type: Array,
43+
type: [String, Array],
4444
default: () => [],
4545
},
4646
size: Number,
@@ -140,13 +140,14 @@ const valueColumn = computed(() => ({
140140
// return !!~row.v.indexOf(value.toString())
141141
// },
142142
render: (row) => {
143+
const val = row.dv || decodeRedisKey(row.v)
143144
if (isCode.value) {
144-
return h('pre', { class: 'pre-wrap' }, row.dv || row.v)
145+
return h('pre', { class: 'pre-wrap' }, val)
145146
}
146147
if (row.rm === true) {
147-
return h('s', {}, row.dv || row.v)
148+
return h('s', {}, val)
148149
}
149-
return row.dv || row.v
150+
return val
150151
},
151152
}))
152153

0 commit comments

Comments
 (0)