Skip to content
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

methods调用后端方法无法正常传递值给data #759

Open
xabai opened this issue Mar 24, 2023 · 0 comments
Open

methods调用后端方法无法正常传递值给data #759

xabai opened this issue Mar 24, 2023 · 0 comments

Comments

@xabai
Copy link

xabai commented Mar 24, 2023

大佬你好,后端数据用postman和网页测试过是正常的数据了,可是只要传递值给data就会出现observer对象,然后无法正常取值无法渲染到html页面上。

`export default {
data(){
return{
Namedata: [],
list: [],
name: ''
}
},
created(){
this.getList()
},
methods:{
getList(){
getPageList()
.then(response => {
this.list = response.data.list

                        console.log(this.list)


                    })
    }
}

}`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant