perf: change the function buttons for database nodes to be persistent

This commit is contained in:
tiny-craft 2023-10-16 18:36:42 +08:00
parent e2a371ed14
commit 77541ed371
1 changed files with 1 additions and 1 deletions

View File

@ -529,7 +529,7 @@ const getValueMenu = () => {
// render menu function icon
const renderSuffix = ({ option }) => {
if (includes(selectedKeys.value, option.key)) {
if ((option.type === ConnectionType.RedisDB && option.opened) || includes(selectedKeys.value, option.key)) {
switch (option.type) {
case ConnectionType.RedisDB:
return renderIconMenu(getDatabaseMenu(option.opened))