fix(player): 未登录悬停赔率仅展示快算弹层,下注时再提示登录

This commit is contained in:
2026-07-06 10:26:38 +08:00
parent 6828067a89
commit 9be3f87b2b
3 changed files with 0 additions and 20 deletions

View File

@@ -4,7 +4,6 @@ import { useRoute, useRouter } from 'vue-router';
import { useI18n } from 'vue-i18n';
import api from '../../api';
import { useBetSlipStore } from '../../stores/betSlip';
import { useAuthStore } from '../../stores/auth';
import TeamEmblem from '../../components/TeamEmblem.vue';
import MatchBetGuide from '../../components/match-detail/MatchBetGuide.vue';
import MarketSelectionsPanel from '../../components/match-detail/MarketSelectionsPanel.vue';
@@ -22,7 +21,6 @@ const route = useRoute();
const router = useRouter();
const { t, locale } = useI18n();
const slip = useBetSlipStore();
const auth = useAuthStore();
const { openAt, visible: popoverVisible, pendingItem: popoverItem, cancelClose, scheduleClose } = useDesktopBetPopover();
const { pendingLocate, clearLocate } = useDesktopBetLocate();
@@ -291,10 +289,6 @@ function buildSlipItem(sel: Selection, market: Market) {
function toggleSelection(sel: Selection, market: Market, event?: MouseEvent) {
if (!match.value || isMarketLocked(market)) return;
if (!auth.token) {
auth.showLoginPrompt(route.fullPath);
return;
}
const item = buildSlipItem(sel, market);
if (!item || !event) return;
openAt(event, item);