reactive处理响应对象的bug
Vue version
3.3.4
Link to minimal reproduction
Steps to reproduce
- {{item.day}}
What is expected?
detail Proxy(Array) {0: {…}, 1: {…}}
What is actually happening?
detail (5) [{…}, {…}, {…}, {…}, {…}]
System Info
win11,chrome
Any additional comments?
如果不是Proxy(Array)视图界面就无法实现自动的刷新。控制台异常
[Vue warn]: Unhandled error during execution of scheduler flush. This is likely a Vue internals bug. Please open an issue at https://new-issue.vuejs.org/?repo=vuejs/core
at
@haorenJava
Not getting [Vue warn] in the console after opening 'minimal reproduction' link.
detail = resp.data.detail;
Here, you are assigning new variable to detail which not reactive hence you are not getting expected result.
Just incase you want reactivity you can use detail = reactive(resp.data.detail)
to get expected output.
But, This is not a bug.