Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

用户设置页面刷新后数据丢失 #84

Open
jesHrz opened this issue Sep 29, 2020 · 0 comments
Open

用户设置页面刷新后数据丢失 #84

jesHrz opened this issue Sep 29, 2020 · 0 comments

Comments

@jesHrz
Copy link

jesHrz commented Sep 29, 2020

在 Profile 界面,从别的页面切换到 Profile 的时候是可以正常显示数据,但是在这个页面按F5刷新一下数据就丢了

问题重现:

image

image

代码定位

https://github.com/QingdaoU/OnlineJudgeFE/blob/master/src/pages/oj/views/setting/children/ProfileSetting.vue#L139-L144

在该段代码中,如果从别的页面跳转而来,this.$store.state.user.profile 是可以取到正确的内容,但是在当前页面刷新后返回的是一个observer的对象,然后导致数据丢失

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant