添加友盟的数据埋点

This commit is contained in:
wangxiaowei
2026-04-16 15:42:07 +08:00
parent 83f4ed1d4b
commit bb1cec2762
5 changed files with 24 additions and 1 deletions

View File

@ -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
View 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