diff --git a/src/store/modules/library.js b/src/store/modules/library.js index 228cf65..8d781d2 100644 --- a/src/store/modules/library.js +++ b/src/store/modules/library.js @@ -144,12 +144,16 @@ export default { // ││││ ││ │├─╴╰─╮ // ╵╰╯╰─╯└─╯╰─╴╶─╯ - 'UPDATE_QUERY_NODES' ({ state }, from) { + 'UPDATE_QUERY_NODES' ({ state }) { const query = { mode: state.mode, nodes: [...state.nodebook.map(ids => ids.join(','))] } - router.push({ query }) + if (router.currentRoute.name !== 'library') { + router.push({ name: 'library', query }) + } else { + router.push({ query }) + } }, async 'OPEN_NODE' ({ state, commit, dispatch }, { parentId, childId }) {