http change

This commit is contained in:
wlikett 2023-12-04 10:26:00 +08:00
parent 70145bc733
commit 51d905c7f0
2 changed files with 3 additions and 4 deletions

View File

@ -40,11 +40,10 @@ export function get(url: string, params: any) {
.get(url, { params })
.then((res: any) => {
NProgress.done()
console.log("res-get",res)
if (res.code == '200') {
resolve(res.data)
resolve(res)
} else {
reject(res.data)
reject(res)
}
})
.catch((err) => {

View File

@ -368,7 +368,7 @@ const toDetail = (data) => {
const getData = async () => {
const res = await getList()
console.log(res)
console.log('res ============',res)
}
const init = () => {
getData()