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

$cuData赋值问题 #24

Open
CN-HM opened this issue Apr 19, 2022 · 1 comment
Open

$cuData赋值问题 #24

CN-HM opened this issue Apr 19, 2022 · 1 comment
Labels
help wanted Extra attention is needed

Comments

@CN-HM
Copy link

CN-HM commented Apr 19, 2022

$cuData全局数据在B页面修改了数据,当返回A页面的时候修改的数据丢失了。
应该如何正确的使用$cuData呢?

B页面部分代码
that.data.$cuData.userInfo = reUserInfo.response; // 返回用户信息并赋值到$cuData
console.log(that.data.$cuData.userInfo) // 这里输出是有值的

A页面部分代码
console.log(that.data.$cuData.userInfo) // 这里输出userInfo为null

@iZaiZaiA
Copy link
Member

我晚上看看

@iZaiZaiA iZaiZaiA added the help wanted Extra attention is needed label Apr 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants