From a1f10e68f54f5d67ffcc8f9b48a2235b1f905617 Mon Sep 17 00:00:00 2001 From: xingyu Date: Tue, 2 Aug 2022 17:33:38 +0800 Subject: [PATCH] perf: remove console --- yudao-ui-admin-vue3/src/hooks/web/useAxios.ts | 6 ------ 1 file changed, 6 deletions(-) diff --git a/yudao-ui-admin-vue3/src/hooks/web/useAxios.ts b/yudao-ui-admin-vue3/src/hooks/web/useAxios.ts index 2769d275a..331969c6e 100644 --- a/yudao-ui-admin-vue3/src/hooks/web/useAxios.ts +++ b/yudao-ui-admin-vue3/src/hooks/web/useAxios.ts @@ -20,37 +20,31 @@ const request = (option: AxiosConfig) => { async function getFn(option: AxiosConfig): Promise { const res = await request({ method: 'GET', ...option }) - console.info(res) return res.data } async function postFn(option: AxiosConfig): Promise { const res = await request({ method: 'POST', ...option }) - console.info(res) return res.data } async function deleteFn(option: AxiosConfig): Promise { const res = await request({ method: 'DELETE', ...option }) - console.info(res) return res.data } async function putFn(option: AxiosConfig): Promise { const res = await request({ method: 'PUT', ...option }) - console.info(res) return res.data } async function downloadFn(option: AxiosConfig): Promise { const res = await request({ method: 'GET', responseType: 'blob', ...option }) - console.info(res) return res as unknown as Promise } async function uploadFn(option: AxiosConfig): Promise { option.headersType = 'multipart/form-data' const res = await request({ method: 'PUT', ...option }) - console.info(res) return res as unknown as Promise }