update url

This commit is contained in:
Владимир Фёдоров 2025-05-20 02:46:20 +07:00
parent 4493307368
commit 598e5656b2
2 changed files with 5 additions and 8 deletions

View File

@ -1,6 +1,6 @@
<script setup lang="ts">
import { onMounted, ref } from 'vue';
import { getApiUrl, getClientUrl } from './net';
import { getApiUrl } from './net';
import router from '@/router';
type Application = {
@ -12,6 +12,7 @@
id: number
name: string
password: string
url: string
spendTime: number
applications: Application[]
}
@ -96,7 +97,9 @@
</thead>
<tbody>
<tr v-for="team in teams.teams" :key="team.name">
<td class="team-name">{{ team.name }} <a :href="getClientUrl('?name=' + team.name + '&password=' + team.password)" target="_blank">[url]</a></td>
<td class="team-name">{{ team.name }}
<a :href="team.url" target="_blank">[url]</a>
</td>
<td>{{ team.spendTime }}</td>
<td>
<div v-for="application in team.applications" :key="application.id">

View File

@ -3,9 +3,3 @@ export function getApiUrl(path: string) {
console.log(url)
return url
}
export function getClientUrl(path: string) {
const url = "http://" + window.location.host.split(":")[0] + ":8100" + path
console.log(url)
return url
}