|
|
@@ -66,7 +66,13 @@ const wishCount = ref(0)
|
|
|
const totalLikes = ref(0)
|
|
|
|
|
|
async function handleLogout() {
|
|
|
- await showConfirmDialog({ title: '确定退出登录?' })
|
|
|
+ await showConfirmDialog({
|
|
|
+ title: '退出登录',
|
|
|
+ message: '确定要退出当前账号吗?',
|
|
|
+ confirmButtonText: '退出',
|
|
|
+ confirmButtonColor: '#ee0a24',
|
|
|
+ cancelButtonText: '取消',
|
|
|
+ })
|
|
|
try { await logoutApi() } catch { /* 即使后端调用失败也清除本地状态 */ }
|
|
|
userStore.logout()
|
|
|
router.push('/')
|