update url
This commit is contained in:
parent
4493307368
commit
598e5656b2
@ -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">
|
||||
|
@ -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
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user