update url
This commit is contained in:
parent
4493307368
commit
598e5656b2
@ -1,6 +1,6 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { onMounted, ref } from 'vue';
|
import { onMounted, ref } from 'vue';
|
||||||
import { getApiUrl, getClientUrl } from './net';
|
import { getApiUrl } from './net';
|
||||||
import router from '@/router';
|
import router from '@/router';
|
||||||
|
|
||||||
type Application = {
|
type Application = {
|
||||||
@ -12,6 +12,7 @@
|
|||||||
id: number
|
id: number
|
||||||
name: string
|
name: string
|
||||||
password: string
|
password: string
|
||||||
|
url: string
|
||||||
spendTime: number
|
spendTime: number
|
||||||
applications: Application[]
|
applications: Application[]
|
||||||
}
|
}
|
||||||
@ -96,7 +97,9 @@
|
|||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr v-for="team in teams.teams" :key="team.name">
|
<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>{{ team.spendTime }}</td>
|
||||||
<td>
|
<td>
|
||||||
<div v-for="application in team.applications" :key="application.id">
|
<div v-for="application in team.applications" :key="application.id">
|
||||||
|
@ -3,9 +3,3 @@ export function getApiUrl(path: string) {
|
|||||||
console.log(url)
|
console.log(url)
|
||||||
return 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