Skip to content

Commit 1c60df4

Browse files
跨域
1 parent f4aa9e8 commit 1c60df4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/network/request.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ export function request(config){
44
const instance = axios.create({
55
// baseURL: "/api",
66
withCredentials: true,
7-
// baseURL: "http://localhost:1003/",
8-
baseURL: "http://106.15.201.34:1003/",
9-
timeout: 5000
7+
crossDomain: true,
8+
baseURL: "http://localhost:1003/",
9+
timeout: 3600
1010
})
1111

1212
instance.interceptors.request.use(config => {

0 commit comments

Comments
 (0)