1 Commits

Author SHA1 Message Date
2cedcf376e 添加百度的数据埋点 2026-04-16 16:44:17 +08:00
3 changed files with 44 additions and 0 deletions

View File

@ -5,6 +5,9 @@ import { requestInterceptor } from './http/interceptor'
import { routeInterceptor } from './router/interceptor' import { routeInterceptor } from './router/interceptor'
import NavBar from '@/components/Navbar.vue' import NavBar from '@/components/Navbar.vue'
import './utils/mtj-wx-sdk.config'
import './utils/mtj-wx-sdk'
import store from './store' import store from './store'
import '@/style/index.scss' import '@/style/index.scss'
import 'virtual:uno.css' import 'virtual:uno.css'
@ -13,6 +16,7 @@ import { getNavBarHeight, getCapsuleOffset } from '@/utils/index'
export function createApp() { export function createApp() {
const app = createSSRApp(App) const app = createSSRApp(App)
/* 注册全局组件 */ /* 注册全局组件 */
app.component('NavBar', NavBar) // 注册全局组件 app.component('NavBar', NavBar) // 注册全局组件

View File

@ -0,0 +1,39 @@
/**
* @file 百度移动统计配置文件
*/
module.exports = {
/**
* 从百度移动统计获取的AppKey
* @type {string}
*/
appKey: 'd4a524dade',
/**
* 是否使用了插件
* @type {boolean}
*/
hasPlugin: false,
/**
* 是否获取当前的地理位置和速度信息
* @type {boolean}
*/
getLocation: false,
/**
* 是否获取组件滚动信息
* @type {boolean}
*/
getComponentScroll: false,
/**
* 是否开启了A/B 测试
* @type {boolean}
*/
hasABTest: false,
/**
* 是否开启热力图功能
* @type {boolean}
*/
hasHeatmap: false,
};

1
src/utils/mtj-wx-sdk.js Normal file

File diff suppressed because one or more lines are too long