generated from VLADIMIR/template_frontend
up
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user