Use the SPA of vue to realize the authority control, how to save the permission table, and how to deal with the permission data after F5 refreshing.

Log in to get the permission list. Where should I save it, in vuex? What should we do after F5?
my idea is that the vuex is saved, and the business needs to be fetched from the vuex. When refreshing, the root component is fetched from the sessionstorage, will it be more efficient than taking it from the sessionstorage every time

Mar.24,2021

localstorage?


can be stored in session. When refreshing, the entry file sets a routing guard (router.beforeEach) to determine.

Menu