Routing problem sent back by Vue backend

get the value returned by the backend after logging in,
clipboard.png

vuex

clipboard.png
vue-router

clipboard.png

and then report an error Cannot convert undefined or null to object,. How to solve this problem

Mar.18,2021

Cannot convert undefined or null to object
cannot convert undefined null to object
is it possible that the data sent from the background may not be a parse problem
JSON.parse (res.requset.response | | {menus: default})


problem solved? I also encountered the same problem, because of the asynchronous problem, I always do not know how to solve it!

Menu