modified: src/components/LoginForm.vue

This commit is contained in:
IrisVega 2024-07-11 16:48:07 +08:00
parent bdb34c9bf7
commit 1d5009c51c
1 changed files with 2 additions and 2 deletions

View File

@ -55,7 +55,7 @@ export default {
methods: { methods: {
async login() { async login() {
try { try {
const response = await fetch('http://localhost:3000/api/login', { const response = await fetch('http://1.14.200.189:4040/api/login', {
method: 'POST', method: 'POST',
headers: { headers: {
'Content-Type': 'application/json' 'Content-Type': 'application/json'
@ -74,7 +74,7 @@ export default {
}, },
async register() { async register() {
try { try {
const response = await fetch('http://localhost:3000/api/register', { const response = await fetch('http://1.14.200.189:4040/api/register', {
method: 'POST', method: 'POST',
headers: { headers: {
'Content-Type': 'application/json' 'Content-Type': 'application/json'