fix: incorrect parse node key

This commit is contained in:
tiny-craft 2023-08-20 14:45:32 +08:00
parent 5a9fb00474
commit df95804a53
1 changed files with 2 additions and 2 deletions

View File

@ -803,9 +803,9 @@ const useConnectionStore = defineStore('connections', {
* @return {DatabaseItem|null}
*/
getNode(key) {
const idx = key.indexOf('#')
let idx = key.indexOf('#')
if (idx < 0) {
return null
idx = size(key)
}
const dbPart = key.substring(0, idx)
// parse server and db index