Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
4.0k views
in Technique[技术] by (71.8m points)

H5封装的APP,如何使用vuex+localStorage来管理token和user信息?

H5封装APP,登录后保存Token和User到Vuex和localStorage,要求登录后再次打开APP不需要再次登录。
取localStorage的时候我有点不知道怎么取了,请问应该在哪一步取,或者有好的设计麻烦请说一下步骤,谢谢


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...