Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .vitepress/theme/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import Layout from './Layout.vue'
import HomePage from './Home.vue'
import CustomContent from './components/customContent.vue'
import GenuiSdk from './components/GenuiSdk.vue'
import { insertFurion } from './insert-furion'
import './style.css'

export default {
Expand All @@ -12,5 +13,6 @@ export default {
app.component('HomePage', HomePage)
app.component('CustomContent', CustomContent)
app.component('GenuiSdk', GenuiSdk)
insertFurion()
}
}
18 changes: 18 additions & 0 deletions .vitepress/theme/insert-furion.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
// @ts-ignore 添加 furion 监控埋点
export function insertFurion() {
if (typeof document === 'undefined') return
!(function (x: string, n: string) {
window[n] = window[n] || {}
window[n].config = {
appId: 'C49090620DD44DFD8E3CA5911408CBBE',
setting: 'api,jsTrack,uba,longtask,rtti,fps',
hashMode: true,
smartJsErr: false
}
let o = document.createElement('script')
o.src = x
o.async = !0
let d = document.body.firstChild
document.body.insertBefore(o, d)
})('https://res.hc-cdn.com/FurionSdkStatic/3.6.56/furion-cdn.min.js', '__fr')
}
Loading