mirror of
https://github.com/qishibo/AnotherRedisDesktopManager.git
synced 2026-02-01 17:27:13 +00:00
delete batch when multi operating
This commit is contained in:
parent
9d94cb492d
commit
fe59ea9c19
@ -142,7 +142,7 @@ export default {
|
|||||||
margin-top: 10px;
|
margin-top: 10px;
|
||||||
}
|
}
|
||||||
.del-batch-key-list-ol {
|
.del-batch-key-list-ol {
|
||||||
min-height: calc(50vh);
|
min-height: calc(100vh - 272px);
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
padding-left: 10px;
|
padding-left: 10px;
|
||||||
list-style-position: inside;
|
list-style-position: inside;
|
||||||
|
|||||||
@ -142,8 +142,13 @@ export default {
|
|||||||
clipboard.writeText(this.rightClickNode.name);
|
clipboard.writeText(this.rightClickNode.name);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
// del single key
|
// del single key["delete" in the key right menu]
|
||||||
case 'delete': {
|
case 'delete': {
|
||||||
|
// del batch instead of single when multi operating
|
||||||
|
if (this.multiOperating) {
|
||||||
|
return this.deleteBatch();
|
||||||
|
}
|
||||||
|
|
||||||
let keyBuffer = Buffer.from(this.rightClickNode.nameBuffer.data);
|
let keyBuffer = Buffer.from(this.rightClickNode.nameBuffer.data);
|
||||||
|
|
||||||
this.client.del(keyBuffer).then((reply) => {
|
this.client.del(keyBuffer).then((reply) => {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user