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

---
 src/pages/index.vue     |    6 ++----
 package-lock.json       |    2 +-
 src/utils/jun_upload.js |   50 +++++++++++++++++++++++++-------------------------
 3 files changed, 28 insertions(+), 30 deletions(-)

diff --git a/package-lock.json b/package-lock.json
index bc44f76..b74e610 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -7202,7 +7202,7 @@
     },
     "js-md5": {
       "version": "0.8.3",
-      "resolved": "https://registry.npmjs.org/js-md5/-/js-md5-0.8.3.tgz",
+      "resolved": "https://registry.npmmirror.com/js-md5/-/js-md5-0.8.3.tgz",
       "integrity": "sha512-qR0HB5uP6wCuRMrWPTrkMaev7MJZwJuuw4fnwAzRgP4J4/F8RwtodOKpGp4XpqsLBFzzgqIO42efFAyz2Et6KQ=="
     },
     "js-tokens": {
diff --git a/src/pages/index.vue b/src/pages/index.vue
index 95254c8..1463a4c 100644
--- a/src/pages/index.vue
+++ b/src/pages/index.vue
@@ -1,8 +1,6 @@
 <!--index.vue-->
 <template>
-    <div>
-
-    </div>
+  <div />
 </template>
 
 <script>
@@ -36,4 +34,4 @@
 </script>
 
 <style scoped>
-</style>
\ No newline at end of file
+</style>
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