fix: 解决首页需要登录才能看到元素

This commit is contained in:
2025-12-20 17:30:01 +08:00
parent 8a934348a6
commit dd2006dd8c
2 changed files with 7 additions and 29 deletions

View File

@@ -61,11 +61,13 @@ export default {
},
// 统一处理点击及触摸事件
_handleDiyGroupInteractionEvent(payload) {
// 如果已登录,直接返回 true 继续传播
if (this.storeToken) {
return true;
}
// 打开登录弹窗
console.log('==> _handleDiyGroupInteractionEvent, 未登录,打开登录弹窗', { payload })
this.$refs.login?.open();
// 阻止事件继续传播