Selaa lähdekoodia

fix: 将axios基础URL从localhost改为生产服务器地址

将基础URL从本地开发环境'http://localhost:3000/'修改为生产服务器地址'http://8.130.126.103:3000/',以便在部署后能正确访问后端API服务。
Sakulin 2 kuukautta sitten
vanhempi
sitoutus
ea55271f89
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      src/utils/axios.ts

+ 1 - 1
src/utils/axios.ts

@@ -14,7 +14,7 @@ import axios from 'axios'
 let token = ''
 
 const baseServer = axios.create({
-  baseURL: 'http://localhost:3000/',
+  baseURL: 'http://8.130.126.103:3000/',
   headers: {
     Authorization: `Bearer ${token}`,
   },