From b6d0ad0e7e57a77d1983009494b09aa1da5fbfc4 Mon Sep 17 00:00:00 2001
From: liukangdong <898885815@qq.com>
Date: 星期四, 12 十二月 2024 16:03:26 +0800
Subject: [PATCH] ll

---
 h5/pages/login/login.vue |   42 ++++++++++++++++++++----------------------
 1 files changed, 20 insertions(+), 22 deletions(-)

diff --git a/h5/pages/login/login.vue b/h5/pages/login/login.vue
index cb05f32..f4d558d 100644
--- a/h5/pages/login/login.vue
+++ b/h5/pages/login/login.vue
@@ -41,7 +41,7 @@
 	export default {
 		data() {
 			return {
-				code: ''
+				code: '111'
 			}
 		},
 		onLoad(option) {
@@ -126,27 +126,25 @@
 								that.$store.commit('setMember', res.data.member)
 							}
 							let flag = res.data.member && res.data.member.id
-							setTimeout(() => {
-								if (source == 0) {
-									if (res.data.token) {
-										that.$store.commit('setToken', res.data.token)
-										getUserInfo().then(ress => {
-											that.$store.commit('setDriverInfo', ress.data)
-										})
-									}
-									this.driverLogin(flag)
-								} else if (source == 2) {
-									if (res.data.token) {
-										that.$store.commit('setToken', res.data.token)
-										getUserInfo().then(ress => {
-											that.$store.commit('setUserInfo', ress.data)
-										})
-									}
-									this.staffLogin(flag)
-								} else {
-									this.jump('/pages/index/index')
-								}
-							}, 300)
+							if (source == 0) {
+								if (res.data.token) {
+									that.$store.commit('setToken', res.data.token)
+									getUserInfo().then(ress => {
+										that.$store.commit('setDriverInfo', ress.data)
+									})
+								}
+								this.driverLogin(flag)
+							} else if (source == 2) {
+								if (res.data.token) {
+									that.$store.commit('setToken', res.data.token)
+									getUserInfo().then(ress => {
+										that.$store.commit('setUserInfo', ress.data)
+									})
+								}
+								this.staffLogin(flag)
+							} else {
+								this.jump('/pages/index/index')
+							}
 						}
 					})
 				}

--
Gitblit v1.9.3