rm net
This commit is contained in:
parent
02c5451c5b
commit
75c11b36a6
@ -1,7 +1,6 @@
|
||||
<script setup lang="ts">
|
||||
import { ref, nextTick, watch, onMounted } from 'vue';
|
||||
import { useRouter } from 'vue-router';
|
||||
import { host } from './net';
|
||||
|
||||
const router = useRouter();
|
||||
|
||||
@ -28,7 +27,7 @@
|
||||
|
||||
function getTeam() {
|
||||
fetch(
|
||||
host+"/team",
|
||||
"/team",
|
||||
{
|
||||
method: "GET",
|
||||
headers: {
|
||||
@ -52,7 +51,9 @@
|
||||
}
|
||||
|
||||
function addAction() {
|
||||
fetch(host+"/team/actions", {
|
||||
fetch(
|
||||
"/team/actions",
|
||||
{
|
||||
method: "POST",
|
||||
headers: {
|
||||
"X-Id": sessionStorage.getItem("teamId") || "",
|
||||
@ -61,7 +62,8 @@
|
||||
body: JSON.stringify({
|
||||
"place": place.value
|
||||
})
|
||||
})
|
||||
}
|
||||
)
|
||||
.then(async () => {place.value = ""})
|
||||
}
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
<script setup lang="ts">
|
||||
import { ref } from 'vue';
|
||||
import { useRouter } from 'vue-router';
|
||||
import { host } from './net';
|
||||
|
||||
const router = useRouter();
|
||||
|
||||
const login = ref("")
|
||||
@ -14,7 +14,7 @@
|
||||
buttonText.value = "Загрузка..."
|
||||
errorMsg.value = ""
|
||||
fetch(
|
||||
host+"/team",
|
||||
"/team",
|
||||
{
|
||||
method: "GET",
|
||||
headers: {
|
||||
@ -34,7 +34,7 @@
|
||||
}
|
||||
})
|
||||
.catch(() => {
|
||||
errorMsg.value = "Сервер не доступен " + host
|
||||
errorMsg.value = "Сервер не доступен"
|
||||
})
|
||||
.finally(() => {buttonText.value = oldText});
|
||||
}
|
||||
|
@ -1,2 +0,0 @@
|
||||
export const host = "http://0.0.0.0:8090"
|
||||
// export const host = "http://192.168.0.110:8090"
|
Loading…
x
Reference in New Issue
Block a user