feat: 未登录时,跳转到单独的登录页

This commit is contained in:
杨鹏
2025-09-08 16:15:45 +08:00
parent 48811b88dc
commit bfa57367dc
12 changed files with 54 additions and 73 deletions
@@ -62,7 +62,15 @@
</uni-forms-item>
</uni-forms>
<button v-if="!isLogin" class="ss-reset-button type-btn" @tap="showAuthModal('accountLogin')">
<button
v-if="!isLogin"
class="ss-reset-button type-btn"
@tap="
() => {
sheep.$router.go('/pages/login/index', {}, { redirect: true });
}
"
>
返回登录
</button>
</view>
@@ -110,7 +118,7 @@
return;
}
// 成功后,用户重新登录
showAuthModal('accountLogin')
sheep.$router.go('/pages/login/index', {}, { redirect: true });
};
</script>