From 9790ff7ecc198ae3bbf10d5e3707a95d60ddab69 Mon Sep 17 00:00:00 2001
From: sjz <1240968267@qq.com>
Date: 星期三, 19 二月 2025 11:54:28 +0800
Subject: [PATCH] 煜昌pad前端

---
 pages/login/login.vue |   17 ++++++-----------
 1 files changed, 6 insertions(+), 11 deletions(-)

diff --git a/pages/login/login.vue b/pages/login/login.vue
index 10d7d3a..b60f7d5 100644
--- a/pages/login/login.vue
+++ b/pages/login/login.vue
@@ -21,8 +21,7 @@
 </template>
 
 <script>
-	import { userInfo } from 'os'
-import {
+	import {
 		login
 	} from '../../api/login'
 	export default {
@@ -36,8 +35,8 @@
 			}
 		},
 		onLoad() {
-			let user =  uni.getStorageSync('userInfo')
-			if( user ) {
+			let user = uni.getStorageSync('userInfo')
+			if (user) {
 				this.userInfo.account = user.code
 			}
 		},
@@ -59,9 +58,6 @@
 					})
 					return
 				}
-
-
-				console.log(this.userInfo)
 				login(this.userInfo.account, this.userInfo.password).then(response => {
 					console.log(response)
 					if (!response.result) {
@@ -75,17 +71,16 @@
 						username: response.data.FNAME,
 						code: response.data.FCODE,
 						company: response.data.FCOMPANY,
-						factory: response.data.FFACTORY
+						factory: response.data.FFACTORY,
 					})
 					uni.navigateTo({
-						url: '/pages/index/index'
+						url: '/pages/index/index',
 					})
 				})
 			}
-		}
+		},
 	}
 </script>
-
 <style>
 	.uni-input {
 		height: 28px;

--
Gitblit v1.9.3