优化手机端 profile 页面

This commit is contained in:
RockYang
2025-08-09 09:49:41 +08:00
parent 604ce985bd
commit c0a89d6f32
2 changed files with 5 additions and 4 deletions

View File

@@ -236,7 +236,7 @@ export function showLoginDialog(router) {
message: '此操作需要登录才能进行,前往登录?',
})
.then(() => {
router.push('/mobile/login')
router.push('/login')
})
.catch(() => {
// on cancel

View File

@@ -16,9 +16,9 @@
</div>
</div>
<div class="login-prompt" v-else>
<van-button type="primary" size="large" round @click="showLoginDialog(router)">
立即登录
</van-button>
<el-button type="primary" size="large" @click="router.push('/mobile/login')"
>立即登录</el-button
>
</div>
</div>
</div>
@@ -278,6 +278,7 @@ onMounted(() => {
})
.catch(() => {
isLogin.value = false
showLoginDialog(router)
})
})