添加百度的数据埋点
This commit is contained in:
@ -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) // 注册全局组件
|
||||||
|
|
||||||
|
|||||||
39
src/utils/mtj-wx-sdk.config.js
Normal file
39
src/utils/mtj-wx-sdk.config.js
Normal 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
1
src/utils/mtj-wx-sdk.js
Normal file
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user