Armour / vue-typescript-admin-template

🖖 A vue-cli 3.0 + typescript minimal admin template
https://armour.github.io/vue-typescript-admin-template
MIT License
5.56k stars 1.75k forks source link

Vuex Persistence. #157

Open fcarvalhodev opened 4 years ago

fcarvalhodev commented 4 years ago

Vuex Persistence

Behavior

Hello everyone! So... this template has a data loss when page reaload. I think it's because we dont have vuex-persistence plugin in the application. Is there other vuex persistence to avoid data loss when reload the page ? How are you guys handle this ?

The issue

When page reload we lose our vuex data.

What you guys thinik about this ?

Maybe we could have a boolean parameter on our vuex modules to handle this situation. This parameter would be in charge of set if we want that module persist or not.

Motivation

Persist user data on vue store to avoid re-login when users reload the page

yeyue1992 commented 3 years ago

Has it been solved? I've come across this problem now 有解决吗 我现在也碰到这个问题了

fcarvalhodev commented 3 years ago

Has it been solved? I've come across this problem now 有解决吗 我现在也碰到这个问题了

Since they didn't answer this issue, I don't think they had solved.