We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
userInfo: { avatar: '', nickname: '', },
但无效果,后续继续调整
globalData: { userInfo: { avatar: '', nickname: '', }, watch(method) { const obj = this; Object.defineProperty(obj, 'data', { configurable: true, enumerable: true, set(value) { if (value.avatar) { this.$set(this.userInfo, 'avatar', value.avatar); } if (value.nickname) { this.$set(this.userInfo, 'nickname', value.nickname); } method(value); }, get() { return this; }, }); }, },
The text was updated successfully, but these errors were encountered:
原本的第24行调整到第35行试一试
await getLoginStatus();
或者就是去掉await?我感觉可能和这个有关系?因为他阻塞在这里,让他无法正常设置globalData之类的字段,读取的时候就出错了?
globalData
Sorry, something went wrong.
这个为啥就关闭了,现在解决了这个问题么))(我不太清楚
No branches or pull requests
但无效果,后续继续调整
The text was updated successfully, but these errors were encountered: