I need to jump to the search result page and carry the search result after getting the results on the search page
After trying several methods, finally using the combination of vuex+sessionStorage in mutations
setResultValue(state,flag){ ("resultValue", (flag)) = flag }
In getters
getResultValue getResultValue(state){ = ("resultValue") return }
Get this data on the page after jump
= ()
Here we can see that we used the sum because of the sessionStorage storage object. Otherwise, we can only get: "[object,object]" when getting the page.
The solution to the above vuex storage complex parameters (such as object arrays, etc.) refresh data loss is all the content I share with you. I hope you can give you a reference and I hope you can support me more.