修改url

This commit is contained in:
14651
2025-08-15 16:26:06 +08:00
parent 2462260bb3
commit cbabebc174
3 changed files with 17 additions and 14 deletions

View File

@@ -3,12 +3,12 @@ import axios from 'axios'
import {
getToken
} from './auth'
import config from '@/config'
const service = axios.create({
// baseURL: 'http://localhost:9090/dev-api/aitutor/aichat',
// baseURL: 'http://localhost:8088/aitutor/aichat',
// baseURL: 'http://localhost:8080/aitutor/aichat',
baseURL: 'http://localhost:8088',
baseURL: config.baseUrl,
timeout: 15000,
headers: {
'Content-Type': 'application/json'

View File

@@ -2,10 +2,10 @@
import {
getToken
} from '@/utils/auth';
import config from '@/config'
const BASE_URL = (() => {
// #ifdef H5
return 'http://localhost:8088';
return config.baseUrl;
// #endif
// #ifndef H5
// return 'http://192.168.x.x:8088'; // 换成你的电脑 IP