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", {