diff --git a/react-ui/src/pages/Dataset/datasetIntro.jsx b/react-ui/src/pages/Dataset/datasetIntro.jsx
index c32f4541..19069507 100644
--- a/react-ui/src/pages/Dataset/datasetIntro.jsx
+++ b/react-ui/src/pages/Dataset/datasetIntro.jsx
@@ -126,7 +126,7 @@ const Dataset = () => {
};
const getDatasetVersions = (params) => {
getDatasetVersionIdList(params).then((res) => {
- setWordList(res.data);
+ setWordList(res?.data?.content ?? []);
});
};
const handleChange = (value) => {
@@ -277,7 +277,9 @@ const Dataset = () => {
- {wordList.length > 0 ? wordList[0].description : null}
+ {wordList.length > 0 && wordList[0].description
+ ? '版本描述:' + wordList[0].description
+ : null}
diff --git a/react-ui/src/pages/Model/modelIntro.jsx b/react-ui/src/pages/Model/modelIntro.jsx
index e4f1cf6c..707b347a 100644
--- a/react-ui/src/pages/Model/modelIntro.jsx
+++ b/react-ui/src/pages/Model/modelIntro.jsx
@@ -121,8 +121,7 @@ const Dataset = () => {
};
const getModelVersions = (params) => {
getModelVersionIdList(params).then((ret) => {
- console.log(ret);
- setWordList(ret.data);
+ setWordList(ret?.data?.content ?? []);
});
};
const handleExport = async () => {
@@ -278,7 +277,9 @@ const Dataset = () => {
- {wordList.length > 0 ? wordList[0].description : null}
+ {wordList.length > 0 && wordList[0].description
+ ? '版本描述:' + wordList[0].description
+ : null}