fix: PCF文件上传结果显示内容

This commit is contained in:
TsMask
2023-12-18 15:00:56 +08:00
parent 1c44651ad2
commit 208d7a4725
3 changed files with 5 additions and 1 deletions

View File

@@ -469,7 +469,9 @@ function fnModalUploadImportUpload(file: File) {
return res;
})
.then(res => {
if (res.code === RESULT_CODE_SUCCESS && res.data?.detail) {
if (res.code === RESULT_CODE_SUCCESS && res.data?.filePath) {
uploadImportState.msg = t('views.neUser.pcf.uploadFileOk');
} else if (res.code === RESULT_CODE_SUCCESS && res.data?.detail) {
uploadImportState.msg = res.data?.detail;
} else {
uploadImportState.msg = t('views.neUser.pcf.uploadFileErr');