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(); } };
恳请各位大神 给解决下,本人刚开始学习这个