fix: key scan 使用 app store 的 scanCount 设置替代硬编码 100

This commit is contained in:
2026-07-11 15:18:21 +08:00
parent fd40207af5
commit ac0e6af233
+2 -1
View File
@@ -1,5 +1,6 @@
import { defineStore } from 'pinia'
import { ref } from 'vue'
import { useAppStore } from './app'
export interface KeyItem {
name: string
@@ -92,7 +93,7 @@ export const useKeyStore = defineStore('key', () => {
loading.value = true
try {
const result: ScanResult = await window.electronAPI.redis.scanKeys(
connId, cursor, pattern.value, 100
connId, cursor, pattern.value, useAppStore().scanCount
)
const newKeys = result.keys.map(k => ({
name: k,