JLBA202505130001_关于吉林银行新建AI智能培训系统的需求_上传失败信息提示

This commit is contained in:
杨航
2025-12-19 16:26:47 +08:00
parent f55c9de6a9
commit 3f511dbc26
2 changed files with 6 additions and 8 deletions
@@ -113,14 +113,12 @@
}) => {
const valid = tempFilePaths.every(url => {
if (props.fileType.length === 0) return true;
console.log(url);
const lastDotIndex = url.lastIndexOf('.')
if (lastDotIndex === -1) return false;
const extension = url.slice(lastDotIndex + 1).split('?')[0].toLowerCase()
return props.fileType.includes(extension)
})
if (!valid) return common.msg('您选择的图片格式有误。')
console.log(valid)
const data = {
bizScen: 'S3005'
}
@@ -129,8 +127,8 @@
fileList.push(...res.splice(0, props.limit - fileList.length))
emits('update:modelValue', fileList.map(res => res.fileId))
}).catch(() => {
}).catch((err) => {
common.msg(err)
})
}
})