vue proxy如何取值

res是这个,那我该如何拿到数组里面的四条数据呢?怎么变成proxy对象了?

        axios.get('http://127.0.0.1:8000/api/show_books').then( (res)=>{
          console.log(res)
          console.log(res.data.list)
          this.bookList = res.data.list
          console.log(this.bookList)

img

使用vue3.0时,因为底层是使用proxy进行代理的所以当我们打印一些值得时候是proxy代理之后的是Proxy对象,Proxy对象里边的[[Target]]才是真实的对象。使用json与序列化后可获取值
JSON.parse(JSON.stringify(this.bookList))

https://blog.csdn.net/m0_67392273/article/details/123371113