Commit 07c55dc2 authored by nick zheng's avatar nick zheng

chore: 关闭控制台request打印请求信息

parent 85e26719
...@@ -73,7 +73,6 @@ service.interceptors.request.use( ...@@ -73,7 +73,6 @@ service.interceptors.request.use(
service.interceptors.response.use( service.interceptors.response.use(
(response: AxiosResponse) => { (response: AxiosResponse) => {
console.log('response', response)
if (response.status === 200) { if (response.status === 200) {
return response.data return response.data
} }
...@@ -81,7 +80,6 @@ service.interceptors.response.use( ...@@ -81,7 +80,6 @@ service.interceptors.response.use(
throw new Error(response.status.toString()) throw new Error(response.status.toString())
}, },
(error) => { (error) => {
console.log('error', error)
const response = error.response const response = error.response
// 处理响应错误 // 处理响应错误
...@@ -102,7 +100,6 @@ function http<T>( ...@@ -102,7 +100,6 @@ function http<T>(
) { ) {
/* 请求成功处理函数 */ /* 请求成功处理函数 */
const successHandler = (res: Response<T>): Promise<Response<T>> | Response<T> => { const successHandler = (res: Response<T>): Promise<Response<T>> | Response<T> => {
console.log('successHandler', res)
if (res.code === 0 || options?.ignoreErrorCheck) return res if (res.code === 0 || options?.ignoreErrorCheck) return res
if (res.code === -10) { if (res.code === -10) {
...@@ -119,7 +116,6 @@ function http<T>( ...@@ -119,7 +116,6 @@ function http<T>(
/* 请求失败处理函数 */ /* 请求失败处理函数 */
const failHandler = (error: Error) => { const failHandler = (error: Error) => {
console.log('failHandler', error)
throw new Error(error?.message || 'Error') throw new Error(error?.message || 'Error')
} }
......
...@@ -130,6 +130,7 @@ async function handleExportAPIChannelPointUsageData() { ...@@ -130,6 +130,7 @@ async function handleExportAPIChannelPointUsageData() {
}, },
}) })
.then((res) => { .then((res) => {
console.log(res)
const excelUrl = window.URL.createObjectURL(new Blob([res.data as any], { type: 'application/vnd.ms-excel' })) const excelUrl = window.URL.createObjectURL(new Blob([res.data as any], { type: 'application/vnd.ms-excel' }))
window.open(excelUrl) window.open(excelUrl)
window.$message.success(t('common_module.export_successfully')) window.$message.success(t('common_module.export_successfully'))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment