|
@@ -928,18 +928,20 @@ function fetchPageData(formData: IObject = {}, isRestart = false) {
|
|
|
: formData
|
|
: formData
|
|
|
)
|
|
)
|
|
|
.then((data) => {
|
|
.then((data) => {
|
|
|
|
|
+ console.log('[PageContent] indexAction resolved, data:', JSON.stringify(data));
|
|
|
if (showPagination) {
|
|
if (showPagination) {
|
|
|
if (props.contentConfig.parseData) {
|
|
if (props.contentConfig.parseData) {
|
|
|
data = props.contentConfig.parseData(data);
|
|
data = props.contentConfig.parseData(data);
|
|
|
}
|
|
}
|
|
|
pagination.total = data.total;
|
|
pagination.total = data.total;
|
|
|
pageData.value = data.list;
|
|
pageData.value = data.list;
|
|
|
|
|
+ console.log('[PageContent] pageData set, count:', pageData.value.length);
|
|
|
} else {
|
|
} else {
|
|
|
pageData.value = data;
|
|
pageData.value = data;
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
.catch((err: unknown) => {
|
|
.catch((err: unknown) => {
|
|
|
- console.error(err);
|
|
|
|
|
|
|
+ console.error('[PageContent] indexAction error:', err);
|
|
|
ElMessage.error(getIndexActionErrorMessage(err));
|
|
ElMessage.error(getIndexActionErrorMessage(err));
|
|
|
})
|
|
})
|
|
|
.finally(() => {
|
|
.finally(() => {
|