fix
This commit is contained in:
@@ -62,7 +62,7 @@ export default defineComponent({
|
||||
const store = useStore();
|
||||
const detailData = reactive({
|
||||
isShowLoading:false,//懒加载,加载中
|
||||
uploadList:[],
|
||||
uploadList:[] as any,
|
||||
upload:props.segmentation?
|
||||
props.segmentation:{
|
||||
isPin: 0,
|
||||
@@ -90,7 +90,7 @@ export default defineComponent({
|
||||
input.type = 'file';
|
||||
input.accept = 'image/*'; // 只允许选择图片文件
|
||||
input.multiple = true; // 允许多选
|
||||
input.addEventListener('change', (event) => {
|
||||
input.addEventListener('change', (event:any) => {
|
||||
detailData.isShowMark = true; // 显示加载状态
|
||||
const files = event?.target?.files;
|
||||
if (!files || files.length === 0) {
|
||||
@@ -100,8 +100,9 @@ export default defineComponent({
|
||||
let file = [...Array.from(files)];
|
||||
let param = new FormData();
|
||||
param.append('id', '');
|
||||
param.append('type', props.segmentationType);
|
||||
file.forEach(image => {
|
||||
let segmentationType:any = props.segmentationType
|
||||
param.append('type', segmentationType);
|
||||
file.forEach((image:any) => {
|
||||
param.append('file', image);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user