16 lines
372 B
JavaScript
16 lines
372 B
JavaScript
import axiosInstance from './axiosConfig'
|
||
|
||
/**
|
||
* 获取后端版本信息
|
||
* GET /info
|
||
* 基于 axiosInstance 的 baseURL:`http://zybdatasupport.online:8000`
|
||
* 返回后端提供的原始 JSON 数据
|
||
*/
|
||
export const getBackendInfo = async () => {
|
||
try {
|
||
const { data } = await axiosInstance.get('/info')
|
||
return data
|
||
} catch (error) {
|
||
throw error
|
||
}
|
||
} |