This commit is contained in:
2026-10-05 00:59:14 +07:00
parent 3d0132c96a
commit 11eff5f761
3 changed files with 8 additions and 7 deletions
+3 -2
View File
@@ -39,7 +39,6 @@ import type {
TeamResult,
Ticket,
} from '@/api/generated/crabs/evening_detective_server'
import { getURL } from '@/api/generated/crabs/evening_detective_server/client'
import GameMapPanel from '@/components/GameMapPanel.vue'
import GameScreensPanel from '@/components/GameScreensPanel.vue'
import GameTeamsPanel from '@/components/GameTeamsPanel.vue'
@@ -499,7 +498,9 @@ async function deleteGame() {
}
function getTeamStoryURL(id: number, password: string): string {
return getURL() + '/team-story/' + id + '?password=' + password
const url = new URL(`/team-story/${id}`, window.location.origin)
url.searchParams.set('password', password)
return url.toString()
}
function openTeamQR(team: Team) {