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.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e9e0dc-4775f.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e9e0dc-4775f.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?