修复了小数点
This commit is contained in:
parent
8ccc7e7b0d
commit
a472d4e251
@ -960,7 +960,8 @@ export default defineComponent({
|
|||||||
issum = false;
|
issum = false;
|
||||||
const res = await uploadflie(file.file, (info: any) => {
|
const res = await uploadflie(file.file, (info: any) => {
|
||||||
console.log(info);
|
console.log(info);
|
||||||
const jindu = info.percent.toFixed(2) * 100
|
let jindu: number = info.percent.toFixed(2) * 100;
|
||||||
|
jindu = parseInt(jindu + "");
|
||||||
uploadprogress.value = jindu > 0 ? jindu : 1;
|
uploadprogress.value = jindu > 0 ? jindu : 1;
|
||||||
});
|
});
|
||||||
userinfo.value.video = res.video.url;
|
userinfo.value.video = res.video.url;
|
||||||
|
@ -231,7 +231,9 @@ export default defineComponent({
|
|||||||
|
|
||||||
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;
|
let jindu: number = info.percent.toFixed(2) * 100;
|
||||||
|
jindu = parseInt(jindu + "");
|
||||||
|
uploadpicprogress.value = jindu || 1;
|
||||||
});
|
});
|
||||||
console.log(res);
|
console.log(res);
|
||||||
form.value.img = res.video.url;
|
form.value.img = res.video.url;
|
||||||
|
@ -511,7 +511,9 @@ export default defineComponent({
|
|||||||
uploadprogress.value = 1;
|
uploadprogress.value = 1;
|
||||||
const res = await uploadflie(file.file, (info: any) => {
|
const res = await uploadflie(file.file, (info: any) => {
|
||||||
console.log(info);
|
console.log(info);
|
||||||
const jindu = info.percent.toFixed(2) * 100
|
// const jindu = info.percent.toFixed(2) * 100
|
||||||
|
let jindu: number = info.percent.toFixed(2) * 100;
|
||||||
|
jindu = parseInt(jindu + "");
|
||||||
uploadprogress.value = jindu > 0 ? jindu : 1;
|
uploadprogress.value = jindu > 0 ? jindu : 1;
|
||||||
});
|
});
|
||||||
console.log(res);
|
console.log(res);
|
||||||
@ -525,7 +527,9 @@ export default defineComponent({
|
|||||||
uploadpicprogress.value = 1;
|
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 || 1;
|
let jindu: number = info.percent.toFixed(2) * 100;
|
||||||
|
jindu = parseInt(jindu + "");
|
||||||
|
uploadpicprogress.value = jindu || 1;
|
||||||
});
|
});
|
||||||
console.log(res);
|
console.log(res);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user