From 6e089f294207e13459ad872a2fb6e701721f5506 Mon Sep 17 00:00:00 2001
From: long <515897141@qq.com>
Date: 星期一, 13 五月 2024 14:44:48 +0800
Subject: [PATCH] 代码格式

---
 src/utils/jun_upload.js |   50 +++++++++++++++++++++++++-------------------------
 1 files changed, 25 insertions(+), 25 deletions(-)

diff --git a/src/utils/jun_upload.js b/src/utils/jun_upload.js
index 27b10c5..a0df2d1 100644
--- a/src/utils/jun_upload.js
+++ b/src/utils/jun_upload.js
@@ -8,28 +8,28 @@
 const uploadUrl = 'pc/requirement!ajaxAddRequirement'
 
 export default {
-	// 鏂囦欢涓婁紶璺緞
-	uploadUrl,
-	// 鏂囦欢涓婁紶鏂规硶
-	uploadFile (content) {
-		var formData = new FormData()
-		formData.append(content.filename, content.file)
-		Axios({
-			method: 'post',
-			headers: { 'Content-Type': 'multipart/form-data' },
-			url: content.action,
-			data: formData
-		}).then((res)=>{
-			console.log('鏂囦欢涓婁紶瀹屾垚', res)
-			content.onSuccess(res.data, content)
-		}).catch((res)=>{
-			if (res.response) {
-				content.onError('涓婁紶鏂囦欢澶辫触' + res.response.status + ',' + res.response.data, res)
-			} else if (res.request) {
-				content.onError('涓婁紶鏂囦欢澶辫触锛屾湇鍔″櫒绔棤鍝嶅簲')
-			} else {
-				content.onError('涓婁紶鏂囦欢澶辫触锛岃姹傚皝瑁呭け璐�')
-			}
-		})
-	}
-}
\ No newline at end of file
+  // 鏂囦欢涓婁紶璺緞
+  uploadUrl,
+  // 鏂囦欢涓婁紶鏂规硶
+  uploadFile(content) {
+    var formData = new FormData()
+    formData.append(content.filename, content.file)
+    Axios({
+      method: 'post',
+      headers: { 'Content-Type': 'multipart/form-data' },
+      url: content.action,
+      data: formData
+    }).then((res) => {
+      console.log('鏂囦欢涓婁紶瀹屾垚', res)
+      content.onSuccess(res.data, content)
+    }).catch((res) => {
+      if (res.response) {
+        content.onError('涓婁紶鏂囦欢澶辫触' + res.response.status + ',' + res.response.data, res)
+      } else if (res.request) {
+        content.onError('涓婁紶鏂囦欢澶辫触锛屾湇鍔″櫒绔棤鍝嶅簲')
+      } else {
+        content.onError('涓婁紶鏂囦欢澶辫触锛岃姹傚皝瑁呭け璐�')
+      }
+    })
+  }
+}

--
Gitblit v1.8.0