chore: replace all cn comments of fe to en version by volc api (#320)
This commit is contained in:
@@ -21,7 +21,7 @@ import {
|
||||
type AxiosRequestConfig,
|
||||
} from '@coze-arch/bot-http';
|
||||
|
||||
// Toast展示位置离top 80px
|
||||
// Toast display 80px from the top
|
||||
Toast.config({
|
||||
top: 80,
|
||||
});
|
||||
@@ -32,7 +32,7 @@ interface CustomAxiosConfig {
|
||||
}
|
||||
|
||||
/**
|
||||
* 业务自定义 axios 配置
|
||||
* Business custom axios configuration
|
||||
* @param __disableErrorToast default: false
|
||||
*/
|
||||
export type BotAPIRequestConfig = AxiosRequestConfig & CustomAxiosConfig;
|
||||
@@ -40,7 +40,7 @@ export type BotAPIRequestConfig = AxiosRequestConfig & CustomAxiosConfig;
|
||||
axiosInstance.interceptors.response.use(
|
||||
response => response.data,
|
||||
error => {
|
||||
// 业务逻辑
|
||||
// business logic
|
||||
if (
|
||||
isApiError(error) &&
|
||||
error.msg &&
|
||||
|
||||
Reference in New Issue
Block a user