Home > front end >  Have a great god know nuxt cannot be used as a vue localstorage, what is the solution, 99.9% of onli
Have a great god know nuxt cannot be used as a vue localstorage, what is the solution, 99.9% of onli

Time:11-02

Nuxt cannot be used as a vue localstorage, what is the solution, 99.9% of online search is the state of the user login example, but I want to store a lot of data, because the public pages need

CodePudding user response:

Localstorage is browser has nothing to do with the framework, it can, of course

CodePudding user response:

Pay attention to the localstorage and sessionstorage storage size limitation, should be around 5 m

CodePudding user response:

reference 1st floor xiaosailun response:
localstorage is what browser has nothing to do with the framework, it can of course use
no, I didn't express clearly, is I want to asyncData () to the client in use, but asyncData () there is no window object, so can't use localstorage, a great god, and there is no other way
  • Related