版本信息页面

This commit is contained in:
2025-11-12 09:53:04 +08:00
parent cd220e46b4
commit 2af7d67b26
3 changed files with 87 additions and 4 deletions

16
src/api/info.js Normal file
View 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
}
}