feat: 未登录时,跳转到单独的登录页
This commit is contained in:
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user