接入数字人和调整界面

This commit is contained in:
aixianling
2023-11-09 15:21:33 +08:00
parent 8eb0db8401
commit ad77470063
18 changed files with 290 additions and 115 deletions

10
src/utils/http.js Normal file
View File

@@ -0,0 +1,10 @@
import qs from "query-string"
const ins = {
post: (url, body, config = {}) => {
const {params: query} = config
return fetch(qs.stringifyUrl({url, query}), {...config, method: "POST", body})
},
get: (url, config) => fetch(qs.stringifyUrl({url, query: config.params}), {...config, method: "GET"}),
}
export default ins