Vue JS returns [__ob__: Observer] data instead of my array of objects

后端 未结 11 845
予麋鹿
予麋鹿 2020-12-08 08:54

I\'ve created a page where I want to get all my data from the database with an API call, but I\'m kinda new to VueJS and Javascript aswell and I don\'t know where I\'m getti

11条回答
  •  臣服心动
    2020-12-08 09:25

    Can also try this:

    var parsedobj = JSON.parse(JSON.stringify(obj))
    console.log(parsedobj)
    

    It was brought by Evan You himself here and more info on that here

    But waiting for the answer is a first step.

提交回复
热议问题