pagekit / vue-resource

The HTTP client for Vue.js
MIT License
10.08k stars 1.6k forks source link

The field is converted to undefined #763

Open itldg opened 2 years ago

itldg commented 2 years ago

I have just touched and used this component.

I found a strange thing in use today.

I use get to request an interface

In the json object returned by, the result of the field named vendor is undefined

If you change the name or use json_decode, you can get the results normally.

I think this phenomenon is rather strange.

I entered the above words through translation, please understand.

axelkennedal commented 2 years ago

We experienced a similar issue and realized that we had a Vue component which was accidentally mutating the store state because of an iterator which used = instead of === to check for equality.