diff --git a/backend/services/connection_service.go b/backend/services/connection_service.go index c3f0940..bf40b02 100644 --- a/backend/services/connection_service.go +++ b/backend/services/connection_service.go @@ -770,7 +770,8 @@ func (c *connectionService) LoadAllKeys(connName string, db int, match, keyType } client, ctx := item.client, item.ctx - keys, _, err := c.scanKeys(ctx, client, match, keyType, 0, 0) + cursor := item.cursor[db] + keys, _, err := c.scanKeys(ctx, client, match, keyType, cursor, 0) if err != nil { resp.Msg = err.Error() return diff --git a/frontend/src/langs/en.json b/frontend/src/langs/en.json index 5d6c628..0b4be84 100644 --- a/frontend/src/langs/en.json +++ b/frontend/src/langs/en.json @@ -87,7 +87,7 @@ "remove_key": "Remove Key", "new_key": "Add Key", "load_more": "Load More Keys", - "load_all": "Load All Keys", + "load_all": "Load All Left Keys", "more_action": "More Action", "nonexist_tab_content": "Selected key does not exist. Please retry", "empty_server_content": "Select and open a connection from the left", diff --git a/frontend/src/langs/zh-cn.json b/frontend/src/langs/zh-cn.json index c45cb0e..f6b7d10 100644 --- a/frontend/src/langs/zh-cn.json +++ b/frontend/src/langs/zh-cn.json @@ -87,7 +87,7 @@ "remove_key": "删除键", "new_key": "添加新键", "load_more": "加载更多键", - "load_all": "加载所有键", + "load_all": "加载剩余所有键", "more_action": "更多操作", "nonexist_tab_content": "所选键不存在,请尝试刷新重试", "empty_server_content": "可以从左边选择并打开连接", diff --git a/frontend/src/stores/connections.js b/frontend/src/stores/connections.js index cbdc6e3..f2d3ed1 100644 --- a/frontend/src/stores/connections.js +++ b/frontend/src/stores/connections.js @@ -772,8 +772,6 @@ const useConnectionStore = defineStore('connections', { async loadAllKeys(connName, db) { const { match, type: keyType } = this.getKeyFilter(connName, db) const { keys } = await this._loadKeys(connName, db, match, keyType, true) - // remove current keys below prefix - this._deleteKeyNode(connName, db, '', true) this._addKeyNodes(connName, db, keys) this._tidyNode(connName, db, '') },