generated from VLADIMIR/template_frontend
add net
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
<script setup lang="ts">
|
||||
import { ref, nextTick, watch, onMounted } from 'vue';
|
||||
import { useRouter } from 'vue-router';
|
||||
import { getApiUrl } from './net';
|
||||
|
||||
const router = useRouter();
|
||||
|
||||
@@ -27,7 +28,7 @@
|
||||
|
||||
function getTeam() {
|
||||
fetch(
|
||||
"/team",
|
||||
getApiUrl("/team"),
|
||||
{
|
||||
method: "GET",
|
||||
headers: {
|
||||
@@ -52,7 +53,7 @@
|
||||
|
||||
function addAction() {
|
||||
fetch(
|
||||
"/team/actions",
|
||||
getApiUrl("/team/actions"),
|
||||
{
|
||||
method: "POST",
|
||||
headers: {
|
||||
|
||||
Reference in New Issue
Block a user