Commit 8f94e01a authored by nick zheng's avatar nick zheng

Merge branch 'beta' into 'master'

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

See merge request !129
parents ef853671 07c55dc2
......@@ -73,7 +73,6 @@ service.interceptors.request.use(
service.interceptors.response.use(
(response: AxiosResponse) => {
console.log('response', response)
if (response.status === 200) {
return response.data
}
......@@ -81,7 +80,6 @@ service.interceptors.response.use(
throw new Error(response.status.toString())
},
(error) => {
console.log('error', error)
const response = error.response
// 处理响应错误
......@@ -102,7 +100,6 @@ function http<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 === -10) {
......@@ -119,7 +116,6 @@ function http<T>(
/* 请求失败处理函数 */
const failHandler = (error: Error) => {
console.log('failHandler', error)
throw new Error(error?.message || 'Error')
}
......
......@@ -130,6 +130,7 @@ async function handleExportAPIChannelPointUsageData() {
},
})
.then((res) => {
console.log(res)
const excelUrl = window.URL.createObjectURL(new Blob([res.data as any], { type: 'application/vnd.ms-excel' }))
window.open(excelUrl)
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