diff --git a/src/pages/demo/plugins/mock/ajax.vue b/src/pages/demo/plugins/mock/ajax.vue index 76320878..a70b8445 100644 --- a/src/pages/demo/plugins/mock/ajax.vue +++ b/src/pages/demo/plugins/mock/ajax.vue @@ -34,11 +34,11 @@ export default { ajax () { this.$axios.get('/api/demo/001') .then(res => { - this.table.columns = Object.keys(res.data.list[0]).map(e => ({ + this.table.columns = Object.keys(res.list[0]).map(e => ({ label: e, prop: e })) - this.table.data = res.data.list + this.table.data = res.list }) } } diff --git a/src/router/menu/_plugin.js b/src/router/menu/_plugin.js index 69b87eb1..11f0e726 100644 --- a/src/router/menu/_plugin.js +++ b/src/router/menu/_plugin.js @@ -275,7 +275,7 @@ export const menu = { // export { title: '表格导出', - icon: 'eye', + icon: 'download', children: [ { title: '基本示例',