refactor: verify

This commit is contained in:
xingyu4j
2022-11-17 10:12:50 +08:00
parent 4d7ac3ebc8
commit d2d4794490
8 changed files with 31 additions and 63 deletions

View File

@ -26,6 +26,10 @@ export default {
const res = await request({ method: 'POST', ...option })
return res.data as unknown as T
},
postOriginal: async (option: any) => {
const res = await request({ method: 'POST', ...option })
return res
},
delete: async <T = any>(option: any) => {
const res = await request({ method: 'DELETE', ...option })
return res.data as unknown as T