一切顺势而行 2019-07-20 22:51 采纳率: 75%
浏览 1080
已结题

UserList.vue?c22d:48 Uncaught (in promise) ReferenceError: rowData is not defined




















ID USERNAME PASSWORD PRIVILEGE
{{ data.username }} {{ data.passwd }}
{{authority.id}} {{authority.name}} {{authority.authority}}

tr, td { border: 1px solid; border-collapse: collapse; } export default { data: function() { return { rowData: [{ id: 1, username: "wunign", passwd: "1234" }] }; }, props: { rowData: { type: Array } }, methods: { getRowData() { var url = "/api/findUserList"; this.$http .post(url) .then(res => { rowData = res.data; }) .then(err => { alert(error); }); } }, mounted() { this.getRowData(); } };

恳请各位大神 给解决下,本人刚开始学习这个

  • 写回答

1条回答 默认 最新

  • dabocaiqq 2019-07-21 14:34
    关注
    评论

报告相同问题?