You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
568 B

4 months ago
// src/api/graph.js
import request from '@/utils/request';
/**
* 获取测试图谱数据固定返回 Disease 及其所有关系
* 后端接口GET /test 无参数
*/
export function getTestGraphData() {
return request({
url: '/getData',
method: 'get'
// 注意:不传 params!因为后端不接收也不需要
});
3 months ago
}
export function getGraph(data) {
return request({
url: '/getGraph',
method: 'post',
data
// 注意:不传 params!因为后端不接收也不需要
});
4 months ago
}