-
-
Notifications
You must be signed in to change notification settings - Fork 283
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
两个页面的fetch.ts返回数据混合 #64
Comments
那肯定是得加的啊,你除了考虑fetch.ts返回,还有直接修改asyncData的可能。如果我直接把asyncData赋值了一个新的obj,响应性就没了。如果加了.value就算你把整个.value赋值新的obj,响应性仍然存在 |
Rainer-Yu
changed the title
fetch.ts 返回的 asyncData 不必添加 .value包装 也不会丢失响应性
两个页面的fetch.ts返回数据混合
May 31, 2021
This issue was closed.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
plugin-vue3/src/entry/client-entry.ts
fetch.ts 返回的数据合并进 asyncData 使用的是reactive 不必添加 .value包装 也不会丢失响应性
在 vue3当中 ref() 响应式 是带有 .value 包装的 reactive() 是通过proxy 实现的 无需 .value包装
带有 .value 还会在后续取值的操作上 重复写出 带有 .value 的代码
The text was updated successfully, but these errors were encountered: