xbx #139

Merged
theluyuan merged 12 commits from xbx into master 2020-11-20 03:19:16 +00:00
Showing only changes of commit a7024c98af - Show all commits

View File

@ -518,9 +518,10 @@ export default defineComponent({
} }
const ifallowpic = ref<boolean>(false); const ifallowpic = ref<boolean>(false);
async function uploadspic(file: AntUpload) { async function uploadspic(file: AntUpload) {
uploadpicprogress.value = 1;
const res = await uploadflie(file.file, (info: any) => { const res = await uploadflie(file.file, (info: any) => {
console.log(info); console.log(info);
uploadpicprogress.value = info.percent.toFixed(2) * 100; uploadpicprogress.value = info.percent.toFixed(2) * 100 || 1;
}); });
console.log(res); console.log(res);