diff --git a/dist/index.html b/dist/index.html
index 8a9cfa3..025a5bd 100644
--- a/dist/index.html
+++ b/dist/index.html
@@ -5,7 +5,7 @@
Вечерний детектив
-
+
diff --git a/src/components/GamePage.vue b/src/components/GamePage.vue
index dd53d85..70abc5d 100644
--- a/src/components/GamePage.vue
+++ b/src/components/GamePage.vue
@@ -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) {
diff --git a/src/components/GameTeamsPanel.vue b/src/components/GameTeamsPanel.vue
index bbdd2ae..68588bd 100644
--- a/src/components/GameTeamsPanel.vue
+++ b/src/components/GameTeamsPanel.vue
@@ -11,10 +11,10 @@ defineProps<{
const emit = defineEmits<{
add: []
- openQR: [team: Team]
+ 'open-qr': [team: Team]
preview: [id: number, password: string]
delete: [team: Team]
- giveApplication: [team: Team, application: Application]
+ 'give-application': [team: Team, application: Application]
}>()
@@ -47,7 +47,7 @@ const emit = defineEmits<{
- QR
Выдать: {{ application.name }}