版本信息页面
This commit is contained in:
16
src/api/info.js
Normal file
16
src/api/info.js
Normal file
@@ -0,0 +1,16 @@
|
||||
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
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user