|
|
|
@ -39,12 +39,11 @@ export function selectDetails(drugName) {
|
|
|
|
|
export function predictReaction(mol1, mol2) {
|
|
|
|
|
const url = 'http://127.0.0.1:5000/predict';
|
|
|
|
|
return axios.get(url, { params: { mol1, mol2 } })
|
|
|
|
|
.then(response => response.data)
|
|
|
|
|
.then(response => Number(response.data))
|
|
|
|
|
.catch(error => console.error(error));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 查询药品作用管理详细
|
|
|
|
|
// export function getTable1(id) {
|
|
|
|
|
// return request({
|
|
|
|
|