修改url
This commit is contained in:
@@ -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'
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user