Skip to content

Commit

Permalink
feat: move clarity
Browse files Browse the repository at this point in the history
  • Loading branch information
yjl9903 committed Feb 7, 2024
1 parent f0646bd commit 0f9f7eb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 1 addition & 7 deletions app.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,7 @@ import { Toaster } from '@/components/ui/sonner';
</script>

<template>
<Script type="text/javascript">
(function (c, l, a, r, i, t, y) { c[a] = c[a] || function () { (c[a].q = c[a].q ||
[]).push(arguments); }; t = l.createElement(r); t.async = 1; t.src =
'https://www.clarity.ms/tag/' + i; y = l.getElementsByTagName(r)[0];
y.parentNode.insertBefore(t, y); })(window, document, 'clarity', 'script', 'kw32lgez2o');
</Script>
<Toaster richColors position="top-center"/>
<Toaster richColors position="top-center" />
<NuxtLoadingIndicator />
<NuxtLayout>
<NuxtLoadingIndicator />
Expand Down
8 changes: 7 additions & 1 deletion nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,13 @@ export default defineNuxtConfig({
lang: 'zh-CN'
},
link: [{ rel: 'icon', href: '/favicon.ico' }],
meta: []
meta: [],
script: [
{
type: 'text/javascript',
children: `(function (c, l, a, r, i, t, y) { c[a] = c[a] || function () { (c[a].q = c[a].q || []).push(arguments); }; t = l.createElement(r); t.async = 1; t.src = 'https://www.clarity.ms/tag/' + i; y = l.getElementsByTagName(r)[0];y.parentNode.insertBefore(t, y); })(window, document, 'clarity', 'script', 'kw32lgez2o');`
}
]
}
},
image: {
Expand Down

0 comments on commit 0f9f7eb

Please sign in to comment.