This commit is contained in:
2021-10-22 22:18:02 +08:00
parent 7e809ed50b
commit d14a5676f3
57 changed files with 13853 additions and 335 deletions

30
src/api/base.ts Normal file
View 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
})