http change
This commit is contained in:
parent
70145bc733
commit
51d905c7f0
|
|
@ -40,11 +40,10 @@ export function get(url: string, params: any) {
|
||||||
.get(url, { params })
|
.get(url, { params })
|
||||||
.then((res: any) => {
|
.then((res: any) => {
|
||||||
NProgress.done()
|
NProgress.done()
|
||||||
console.log("res-get",res)
|
|
||||||
if (res.code == '200') {
|
if (res.code == '200') {
|
||||||
resolve(res.data)
|
resolve(res)
|
||||||
} else {
|
} else {
|
||||||
reject(res.data)
|
reject(res)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.catch((err) => {
|
.catch((err) => {
|
||||||
|
|
|
||||||
|
|
@ -368,7 +368,7 @@ const toDetail = (data) => {
|
||||||
|
|
||||||
const getData = async () => {
|
const getData = async () => {
|
||||||
const res = await getList()
|
const res = await getList()
|
||||||
console.log(res)
|
console.log('res ============',res)
|
||||||
}
|
}
|
||||||
const init = () => {
|
const init = () => {
|
||||||
getData()
|
getData()
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue