Skip to content

Commit 875e102

Browse files
Mianhuatang8luofann
authored andcommitted
feat: 运营数据接入 --story=125100805
# Reviewed, transaction id: 52700
1 parent 3bd8653 commit 875e102

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

frontend/desktop/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
"author": "",
1111
"license": "ISC",
1212
"dependencies": {
13+
"@blueking/bk-trace-core": "0.0.4",
1314
"@blueking/bkcharts": "^2.0.11-alpha.5",
1415
"@blueking/bkui-form": "0.0.43",
1516
"@blueking/crypto-js-sdk": "0.0.5",

frontend/desktop/src/main.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,16 @@ import '@toast-ui/editor/dist/toastui-editor.css'
3333
import { STRING_LENGTH } from '@/constants/index.js'
3434
import cron from '@/assets/js/node-cron-valid/node-cron-vaild.js'
3535
import tools from './utils/tools'
36+
import BkTrace from '@blueking/bk-trace-core'
3637
const config = {
3738
errorBagName: 'veeErrors',
3839
fieldsBagName: 'veeFields'
3940
}
41+
42+
const dateAccessConfig = {
43+
url: window.BK_DATA_REPORT_API_URL,
44+
appCode: window.APP_CODE
45+
}
4046
Vue.use(VeeValidate, config)
4147

4248
Vue.use(bkMagicVue)
@@ -67,6 +73,7 @@ Vue.use(Pagination)
6773
Vue.use(Tooltip)
6874
Vue.use(Cascader)
6975
Vue.use(autocomplete)
76+
Vue.use(BkTrace, dateAccessConfig)
7077

7178
window.reportInfo = function () {}
7279

0 commit comments

Comments
 (0)