perf: 完善新用户引导
This commit is contained in:
@@ -299,8 +299,10 @@ async function handleBuy() {
|
||||
success: async (res) => {
|
||||
if (res.confirm) {
|
||||
try {
|
||||
await userStore.login()
|
||||
handleBuy()
|
||||
const { isNewUser } = await userStore.loginWithSetup()
|
||||
if (!isNewUser) {
|
||||
handleBuy()
|
||||
}
|
||||
} catch {
|
||||
uni.showToast({ title: '登录失败', icon: 'none' })
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user