Skip to content

Commit 45edb19

Browse files
committed
fix: resolve typecheck error in bing-uet UET constructor call
1 parent 8d3fa67 commit 45edb19

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/runtime/registry/bing-uet.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,11 @@ export function useScriptBingUet<T extends BingUetApi>(_options?: BingUetInput)
3030
use() {
3131
// After bat.js loads, initialize UET if not already done
3232
if (options?.id && typeof window.UET === 'function' && Array.isArray(window.uetq)) {
33-
const uetOptions: Record<string, any> = {
33+
const uetOptions = {
3434
ti: options.id,
3535
enableAutoSpaTracking: options.enableAutoSpaTracking ?? true,
36+
q: window.uetq as any[],
3637
}
37-
uetOptions.q = window.uetq
3838
window.uetq = new window.UET(uetOptions)
3939
window.uetq.push('pageLoad')
4040
}

0 commit comments

Comments
 (0)