提交代码

This commit is contained in:
2025-04-12 14:54:02 +08:00
parent f7761e99a1
commit a2e89f5ea1
599 changed files with 194300 additions and 0 deletions

23
src/utils/document.js Normal file
View File

@ -0,0 +1,23 @@
import axios from 'axios';
const baseUrl = "/daglApi";
export function getInfoPost(url, data = {}, token, fun) {
axios.post(`${baseUrl}${url}`, data, {
headers: {
"founder.authorization": `bearer ${token}`,
}
}).then(res => {
fun(res.data)
})
}
export function getInfo(url, params = {}, token, fun) {
axios.get(`${baseUrl}${url}`, {
params,
headers: {
"founder.authorization": `bearer ${token}`,
},
}).then(res => {
fun(res.data)
})
}