no message
Former-commit-id: 347253b910c9c8fd2c5a7d563e5c59dff6759ea3 Former-commit-id: 11a8486ada0efc2244927c648ee96511b06b27dd Former-commit-id: 2549cc4501bc5f40eccdba413c8ca458dae7a3b9
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
<div slot="header">
|
||||
<el-button @click="ajax">发送请求</el-button>
|
||||
</div>
|
||||
<el-table v-bind="table" style="width: 100%">
|
||||
<el-table v-bind="table" style="width: 100%" class="mb">
|
||||
<el-table-column
|
||||
v-for="(item, index) in table.columns"
|
||||
:key="index"
|
||||
@@ -12,6 +12,7 @@
|
||||
:label="item.label">
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
<Markdown url="/static/markdownFiles/article/mock拦截ajax.md"></Markdown>
|
||||
</el-card>
|
||||
</Container>
|
||||
</template>
|
||||
@@ -31,7 +32,7 @@ export default {
|
||||
},
|
||||
methods: {
|
||||
ajax () {
|
||||
this.$axios.get('/abc')
|
||||
this.$axios.get('/api/demo/001')
|
||||
.then(res => {
|
||||
this.table.columns = Object.keys(res.data.list[0]).map(e => ({
|
||||
label: e,
|
||||
|
||||
Reference in New Issue
Block a user