Merge remote-tracking branch 'origin/main' into feature/0714_同步媒体账号数据_rxd
This commit is contained in:
@ -6,7 +6,7 @@
|
||||
</div>
|
||||
<a-table
|
||||
:columns="columns"
|
||||
:data="data"
|
||||
:data="dataSource"
|
||||
:pagination="pagination"
|
||||
class="mt-8px h-540px"
|
||||
@page-change="handlePageChange"
|
||||
@ -79,7 +79,7 @@ const columns = [
|
||||
slotName: 'action',
|
||||
},
|
||||
];
|
||||
const data = ref([]);
|
||||
const dataSource = ref([]);
|
||||
const pagination = reactive({
|
||||
total: 0,
|
||||
showPageSize: true,
|
||||
@ -130,10 +130,10 @@ function handlePageSizeChange(pageSize: number) {
|
||||
|
||||
async function getSubAccount() {
|
||||
const res = await fetchSubAccountPage(params);
|
||||
const { data, total, code } = res.data;
|
||||
const { data, code } = res;
|
||||
if (code === 200) {
|
||||
pagination.total = total;
|
||||
data.value = data;
|
||||
pagination.total = data.total;
|
||||
dataSource.value = data?.data ?? [];
|
||||
}
|
||||
}
|
||||
async function handleAddAccount() {
|
||||
|
||||
@ -27,7 +27,7 @@
|
||||
:wrapper-col-props="{ span: 21, offset: 0 }"
|
||||
>
|
||||
<a-form-item field="head_image" label="头像">
|
||||
<div class="flex item-center">
|
||||
<div class="flex items-center">
|
||||
<a-avatar :image-url="userInfoForm.file_url" :size="48" />
|
||||
<span class="upload-button" @click="triggerFileInput">
|
||||
<input
|
||||
|
||||
Reference in New Issue
Block a user