添加友盟的数据埋点
This commit is contained in:
@ -10,6 +10,7 @@ import '@/style/index.scss'
|
||||
import 'virtual:uno.css'
|
||||
|
||||
import { getNavBarHeight, getCapsuleOffset } from '@/utils/index'
|
||||
import uma from './uma';
|
||||
|
||||
export function createApp() {
|
||||
const app = createSSRApp(App)
|
||||
@ -19,6 +20,7 @@ export function createApp() {
|
||||
app.use(store)
|
||||
app.use(routeInterceptor)
|
||||
app.use(requestInterceptor)
|
||||
app.use(uma)
|
||||
|
||||
app.use(VueQueryPlugin)
|
||||
app.provide('OSS', 'https://chaz.oss-cn-shanghai.aliyuncs.com/fronted/')
|
||||
|
||||
11
src/uma.ts
Normal file
11
src/uma.ts
Normal file
@ -0,0 +1,11 @@
|
||||
// #ifdef MP-WEIXIN
|
||||
import uma from 'umtrack-wx';
|
||||
uma.init({
|
||||
appKey: '69e081af6f259537c799f90c',
|
||||
useOpenid: false,
|
||||
autoGetOpenid: false,
|
||||
debug: true
|
||||
});
|
||||
// #endif
|
||||
|
||||
export default uma
|
||||
Reference in New Issue
Block a user