bug修复

This commit is contained in:
XaoLi717 2024-10-10 19:07:49 +08:00
parent 2b9db20a67
commit 99c18849ea

View File

@ -205,10 +205,10 @@ const SyncFiles = async () => {
for (const Name of fileList.value) {
const fName = Name as UploadUserFile & {page?: number,lodTxt?: String};
fName.lodTxt="10%"
// if (fName.page==100){
// fName.lodTxt=""
// continue
// }
if (fName.page==100){
fName.lodTxt="完成"
continue
}
//
await delay(100);
fName.page = 20;
@ -440,9 +440,11 @@ const handleFileSuccess: UploadProps['onSuccess'] = (res: any): void => {
if (uploadList.value.length == uploadNumber.value) {
fileList.value.push(...uploadList.value)
MysqlUrl.value.push(...uploadList.value)
const updatedFileStatus = [...props.fileStatus];
updatedFileStatus.push(10);
emit('update:fileStatus', updatedFileStatus);
if (props.fileStatus){
const updatedFileStatus = [...props.fileStatus];
updatedFileStatus.push(0);
emit('update:fileStatus', updatedFileStatus);
}
// console.log("updatedFileStatus",updatedFileStatus)
// console.log("fileList.value",fileList.value)
// console.log("MysqlUrl.value",MysqlUrl.value)
@ -574,7 +576,9 @@ watch(
}
val.forEach((item, index) => {
fileList.value[index].page = item
if (item == 10 ){
if (item == 0 ){
fileList.value[index].lodTxt = "未同步"
}else if (item == 10){
fileList.value[index].lodTxt = "错误"
}else{
fileList.value[index].lodTxt = "完成"