< el-table: data= "users" highlight-current-row VMI loading = "listLoading" @ selection-change= "selsChange" style= "width: 100%;" >
<el-table-column type="selection" width="55">
</el-table-column>
<el-table-column type="index" width="60">
</el-table-column>
<el-table-column prop="name" label="" width="120" sortable>
</el-table-column>
<el-table-column prop="sex" label="" width="100" :formatter="formatSex" sortable>
</el-table-column>
<el-table-column prop="age" label="" width="100" sortable>
</el-table-column>
<el-table-column prop="birth" label="" width="120" sortable>
</el-table-column>
<el-table-column prop="addr" label="" min-width="180" sortable>
</el-table-column>
<el-table-column label="" width="150">
<template scope="scope">
<el-button size="small" @click="handleEdit(scope.$index, scope.row)"></el-button>
<el-button type="danger" size="small" @click="handleDel(scope.$index, scope.row)"></el-button>
</template>
</el-table-column>
</el-table>
if a file like this is used to load simulation data, I would like to change it into my own dynamic data. May I ask you how it was changed? thank you
import axios from "axios";
let base ="";
export const requestLogin = params = > {return axios.post (${base} / login, params). Then (res = > res.data);};
export const getUserList = params = > {return axios.get (${base} / user/list, {params: params});};
export const getUserListPage = params = > {return axios.get (${base} / user/listpage, {params: params});};
export const removeUser = params = > {return axios.get (${base} / user/remove, {params: params});};
export const batchRemoveUser = params = > {return axios.get (${base} / user/batchremove, {params: params});};
export const editUser = params = > {return axios.get (${base} / user/edit, {params: params});};
export const addUser = params = > {return axios.get (${base} / user/add, {params: params});};
it may have read data here