diff --git a/console/src/main/resources/static/console-fe/src/pages/ConfigurationManagement/ConfigurationManagement/ConfigurationManagement.js b/console/src/main/resources/static/console-fe/src/pages/ConfigurationManagement/ConfigurationManagement/ConfigurationManagement.js index b2c42798d..e11bd864b 100644 --- a/console/src/main/resources/static/console-fe/src/pages/ConfigurationManagement/ConfigurationManagement/ConfigurationManagement.js +++ b/console/src/main/resources/static/console-fe/src/pages/ConfigurationManagement/ConfigurationManagement/ConfigurationManagement.js @@ -866,6 +866,7 @@ class ConfigurationManagement extends React.Component { processImportAndCloneResult(ret, locale, confirm, isImport) { const resultCode = ret.code; + console.log(ret); if (resultCode === 200) { confirm.hide(); if (ret.data.failData && ret.data.failData.length > 0) { @@ -887,7 +888,7 @@ class ConfigurationManagement extends React.Component {
- {locale.unprocessedEntries}: {ret.data.skipData ? ret.data.skipData : 0} + {locale.unprocessedEntries}: {ret.data.skipData ? ret.data.skipData.length : 0}
@@ -923,13 +924,13 @@ class ConfigurationManagement extends React.Component { this.getData(); } else { let alertContent = isImport ? locale.importFailMsg : locale.cloneFailMsg; - if (resultCode === 5001) { + if (resultCode === 100001) { alertContent = locale.namespaceNotExist; } - if (resultCode === 5002) { + if (resultCode === 100002) { alertContent = locale.metadataIllegal; } - if (resultCode === 5003 || resultCode === 5004 || resultCode === 5005) { + if (resultCode === 100003 || resultCode === 100004 || resultCode === 100005) { alertContent = locale.importDataValidationError; } Dialog.alert({