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

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

No files matched your search

+3 -1
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');