Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Aug 12, 2025. It is now read-only.

Commit 7188f7e

Browse files
committed
fix(service): disable apiLog when apiTrack config is off
1 parent 72c8e8f commit 7188f7e

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

‎packages/console-utils/xconsole-service/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@alicloud/xconsole-service",
3-
"version": "2.6.4",
3+
"version": "2.6.5",
44
"main": "lib/index.js",
55
"module": "es/index.js",
66
"types": "lib/index.d.ts",

‎packages/console-utils/xconsole-service/src/utils/logger.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,9 @@ const apiLog = (info: any): void => {
3636
}
3737

3838
// 手动上报 aplus
39-
// eslint-disable-next-line @typescript-eslint/camelcase
4039
const q = (window.aplus_queue || (window.aplus_queue = []));
40+
if (window.APLUS_CONFIG?.apiTrack === 'off') return;
41+
4142
window.APLUS_CONFIG && q.push({
4243
'action':'aplus.logApi',
4344
'arguments':[{

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /