迁移为next项目

This commit is contained in:
砂糖
2026-04-07 15:21:54 +08:00
parent 2cf1b252e3
commit 7e76c62521
400 changed files with 4061 additions and 0 deletions

22
old/js/http.js Normal file
View File

@@ -0,0 +1,22 @@
// 获取咨询列表
async function getArticleList(params) {
const urlParams = new URLSearchParams(params)
return fetch(`http://49.232.154.205/prod-api/export/article/list?${urlParams.toString()}`, {
method: 'GET',
headers: {
'Content-Type': 'application/json'
},
})
.then(res => res.json())
}
// 获取咨询详情
async function getArticleDetail(id) {
return fetch(`http://49.232.154.205/prod-api/export/article/${id}`, {
method: 'GET',
headers: {
'Content-Type': 'application/json'
}
})
.then(res => res.json())
}