Skip to content

Commit 2b0beec

Browse files
committed
update axios api
1 parent fea2974 commit 2b0beec

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

client/src/api/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ const API_URL = import.meta.env.VITE_API_URL || 'http://localhost:3000/api';
44

55
// 创建axios实例
66
const api = axios.create({
7-
baseURL: API_URL,
7+
baseURL: '/api',
88
headers: {
99
'Content-Type': 'application/json'
1010
}

0 commit comments

Comments
 (0)