add net
This commit is contained in:
parent
d667590862
commit
a9b92b334f
@ -1,11 +1,10 @@
|
||||
<script setup lang="ts">
|
||||
import { ref, nextTick, watch, onMounted } from 'vue';
|
||||
import { useRouter } from 'vue-router';
|
||||
import { host } from './net';
|
||||
|
||||
const router = useRouter();
|
||||
|
||||
const host = "http://192.168.0.110:8090"
|
||||
|
||||
type Application = {
|
||||
name: string
|
||||
}
|
||||
|
@ -1,15 +1,13 @@
|
||||
<script setup lang="ts">
|
||||
import { ref } from 'vue';
|
||||
import { useRouter } from 'vue-router';
|
||||
import { ref } from 'vue';
|
||||
import { useRouter } from 'vue-router';
|
||||
import { host } from './net';
|
||||
const router = useRouter();
|
||||
|
||||
const router = useRouter();
|
||||
const login = ref("")
|
||||
const password = ref("")
|
||||
|
||||
const host = "http://192.168.0.110:8090"
|
||||
|
||||
const login = ref("")
|
||||
const password = ref("")
|
||||
|
||||
function onClickLogin() {
|
||||
function onClickLogin() {
|
||||
fetch(
|
||||
host+"/team",
|
||||
{
|
||||
@ -28,10 +26,9 @@ function onClickLogin() {
|
||||
}
|
||||
})
|
||||
.catch(error => {console.error('Ошибка:', error)});
|
||||
}
|
||||
|
||||
onClickLogin()
|
||||
}
|
||||
|
||||
onClickLogin()
|
||||
</script>
|
||||
|
||||
<template>
|
||||
|
1
src/components/net.ts
Normal file
1
src/components/net.ts
Normal file
@ -0,0 +1 @@
|
||||
export const host = "http://192.168.0.110:8090"
|
Loading…
x
Reference in New Issue
Block a user