DCFronted/src/api/info.js

16 lines
372 B
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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
}
}