This commit is contained in:
2025-05-18 22:59:20 +07:00
parent 02c5451c5b
commit 75c11b36a6
3 changed files with 17 additions and 17 deletions
+14 -12
View File
@@ -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,16 +51,19 @@
}
function addAction() {
fetch(host+"/team/actions", {
method: "POST",
headers: {
"X-Id": sessionStorage.getItem("teamId") || "",
"X-Password": sessionStorage.getItem("password") || ""
},
body: JSON.stringify({
"place": place.value
})
})
fetch(
"/team/actions",
{
method: "POST",
headers: {
"X-Id": sessionStorage.getItem("teamId") || "",
"X-Password": sessionStorage.getItem("password") || ""
},
body: JSON.stringify({
"place": place.value
})
}
)
.then(async () => {place.value = ""})
}