docs: fix Lazyload register multilple times (#10456)

This commit is contained in:
neverland 2022-04-01 00:17:28 +08:00 committed by GitHub
parent a593f864ab
commit d507e97996
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,10 +1,14 @@
<script setup lang="ts">
<script lang="ts">
import Lazyload from '..';
import { cdnURL, useTranslate } from '../../../docs/site';
if (window.app) {
window.app.use(Lazyload, { lazyComponent: true });
}
</script>
<script setup lang="ts">
// eslint-disable-next-line import/first
import { cdnURL, useTranslate } from '../../../docs/site';
const t = useTranslate({
'zh-CN': {