From e1362fce45e79c4839aa86dca44cfb446442df0a Mon Sep 17 00:00:00 2001 From: Lykin <137850705+tiny-craft@users.noreply.github.com> Date: Thu, 11 Jan 2024 14:43:23 +0800 Subject: [PATCH] fix: unable to copy binary key --- frontend/src/components/sidebar/BrowserTree.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frontend/src/components/sidebar/BrowserTree.vue b/frontend/src/components/sidebar/BrowserTree.vue index bc73913..10a30b6 100644 --- a/frontend/src/components/sidebar/BrowserTree.vue +++ b/frontend/src/components/sidebar/BrowserTree.vue @@ -25,6 +25,7 @@ import { useRender } from '@/utils/render.js' import RedisTypeTag from '@/components/common/RedisTypeTag.vue' import usePreferencesStore from 'stores/preferences.js' import { typesIconStyle } from '@/consts/support_redis_type.js' +import { nativeRedisKey } from '@/utils/key_convert.js' const props = defineProps({ server: String, @@ -199,7 +200,7 @@ const handleSelectContextMenu = (key) => { break case 'key_copy': case 'value_copy': - ClipboardSetText(redisKey) + ClipboardSetText(nativeRedisKey(redisKey)) .then((succ) => { if (succ) { $message.success(i18n.t('interface.copy_succ'))