lyuis 7 ماه پیش
والد
کامیت
2966c202ba
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      pages/my/attachment.vue

+ 1 - 1
pages/my/attachment.vue

@@ -238,7 +238,7 @@
 				  filePath: e.path,
 				  success: (info) => {
 				    console.log('文件大小:', info.size); // 单位:字节
-					let attachment_size=parseInt(info.size/1024)
+					let attachment_size=(info.size/1024).toFixed(1)
 					that.$queue.uploadFile(e.path,function(path){
 						if(path)
 							that.$Request.postJson("/app/resumes/saveAttachment", {