From 63820a55496e99f54d68a1f16e3f6f606c582120 Mon Sep 17 00:00:00 2001
From: MrShi <1878285526@qq.com>
Date: 星期三, 11 二月 2026 09:11:16 +0800
Subject: [PATCH] 调试代码
---
mini-program/pages/login/login.vue | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/mini-program/pages/login/login.vue b/mini-program/pages/login/login.vue
index 391c0ef..f5d88db 100644
--- a/mini-program/pages/login/login.vue
+++ b/mini-program/pages/login/login.vue
@@ -55,7 +55,7 @@
this.checkLogin()
},
methods:{
- checkLogin(){
+ async checkLogin(){
if( !this.shopInfo && !this.shopToken){
let res = await that.$u.api.getUserInfo()
if (res.code === 200) {
@@ -93,7 +93,7 @@
return
}
this.$u.api.shopPasswordLogin(this.form)
- .then(res => {
+ .then(async (res) => {
if (res.code === 200) {
await that.$store.commit('setShopInfo', res.data.member)
await that.$store.commit('setShopToken', res.data.token)
--
Gitblit v1.9.3