feat(miniprogram): add phone quick login button on login page.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
wuzilongandCursor committed 2026-09-18 11:15:47 +08:00
1 parent 6f39801c63
commit b5a58583bd
2 files changed
+142 -4

No files matched your search

+1 -3
View File
@@ -130,8 +130,8 @@ export const useUserStore = defineStore('user', () => {
}
}
/** 手机号快捷登录;loading 由登录页控制,此处不改 isLoading */
async function wechatLogin(params) {
isLoading.value = true
try {
const res = await request({
url: AUTH_API.WECHAT_LOGIN,
@@ -156,8 +156,6 @@ export const useUserStore = defineStore('user', () => {
} catch (e) {
uni.showToast({ title: (e && e.message) || '登录失败', icon: 'none' })
return false
} finally {
isLoading.value = false
}
}