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




















IDUSERNAMEPASSWORDPRIVILEGE
{{ 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(); } };

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

https://bbs.csdn.net/topics/390897627?page=1