yibufen
This commit is contained in:
30
src/api/base.ts
Normal file
30
src/api/base.ts
Normal file
@@ -0,0 +1,30 @@
|
||||
import Axios from 'axios'
|
||||
|
||||
const host = "http://192.168.3.159"
|
||||
|
||||
const config = {}
|
||||
export interface res<T> { code: number, msg: string, data: T }
|
||||
export const login = Axios.create({
|
||||
baseURL: host + ":9005",
|
||||
...config
|
||||
})
|
||||
|
||||
export const professionalquery = Axios.create({
|
||||
baseURL: host + ":9001",
|
||||
...config
|
||||
})
|
||||
|
||||
export const schoolquery = Axios.create({
|
||||
baseURL: host + ":9002",
|
||||
...config
|
||||
})
|
||||
|
||||
export const voluntary = Axios.create({
|
||||
baseURL: host + ":9003",
|
||||
...config
|
||||
})
|
||||
|
||||
export const zixun = Axios.create({
|
||||
baseURL: host + ":9007",
|
||||
...config
|
||||
})
|
||||
Reference in New Issue
Block a user