This commit is contained in:
XaoLi717 2024-11-08 10:58:02 +08:00
parent 7faa884958
commit 34dd84d743

View File

@ -156,7 +156,7 @@ const colors = [
{ color: '#31ff98', percentage: 100 },
]
//
const getColor = (per:number) => {
const getColor = async (per:number) => {
const colorObj = colors.find(c => per == c.percentage);
return colorObj ? colorObj.color : '#f56c6c';
}
@ -254,9 +254,9 @@ const SyncFiles = async () => {
}
}
message.success("同步完成! ")
emitUpdatePage()
await emitUpdatePage()
}
const emitUpdatePage = () => {
const emitUpdatePage =async () => {
let result:number[] = [];
for (const pe of fileList.value){
const pa = pe as UploadUserFile & {page?: number};
@ -462,7 +462,7 @@ const handleRemove = (file: UploadFile) => {
}
//
const handleView = (file)=> {
const handleView = async (file)=> {
const url = file.url
if (!url) {
console.error("文件不可预览");