Answer the question
In order to leave comments, you need to log in
How to store multiple query values?
Hello. It is necessary to implement a tree, something like folders with infinite nesting. So that after reloading the page the tree remains open in the same place as before reloading, I write the current path to query.
onFolderClick(folder) {
this.$router.push({ path: `/files/${this.folder.id}`, query: { path: folder.key } });
},
/files?path=folder1&path=folder2&path=folder3
. Answer the question
In order to leave comments, you need to log in
A node (folder) must have a link to its parent. You can recursively go from the current node to the parent, then to its parent, until you reach the root node and make each node in the branch open.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question