上传直接出进度条
This commit is contained in:
parent
3dba6dca46
commit
a7024c98af
@ -518,9 +518,10 @@ export default defineComponent({
|
||||
}
|
||||
const ifallowpic = ref<boolean>(false);
|
||||
async function uploadspic(file: AntUpload) {
|
||||
uploadpicprogress.value = 1;
|
||||
const res = await uploadflie(file.file, (info: any) => {
|
||||
console.log(info);
|
||||
uploadpicprogress.value = info.percent.toFixed(2) * 100;
|
||||
uploadpicprogress.value = info.percent.toFixed(2) * 100 || 1;
|
||||
});
|
||||
console.log(res);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user