fix: unable to copy binary key

This commit is contained in:
Lykin 2024-01-11 14:43:23 +08:00
parent f1cfa1778f
commit e1362fce45
1 changed files with 2 additions and 1 deletions

View File

@ -25,6 +25,7 @@ import { useRender } from '@/utils/render.js'
import RedisTypeTag from '@/components/common/RedisTypeTag.vue' import RedisTypeTag from '@/components/common/RedisTypeTag.vue'
import usePreferencesStore from 'stores/preferences.js' import usePreferencesStore from 'stores/preferences.js'
import { typesIconStyle } from '@/consts/support_redis_type.js' import { typesIconStyle } from '@/consts/support_redis_type.js'
import { nativeRedisKey } from '@/utils/key_convert.js'
const props = defineProps({ const props = defineProps({
server: String, server: String,
@ -199,7 +200,7 @@ const handleSelectContextMenu = (key) => {
break break
case 'key_copy': case 'key_copy':
case 'value_copy': case 'value_copy':
ClipboardSetText(redisKey) ClipboardSetText(nativeRedisKey(redisKey))
.then((succ) => { .then((succ) => {
if (succ) { if (succ) {
$message.success(i18n.t('interface.copy_succ')) $message.success(i18n.t('interface.copy_succ'))