mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-05 19:41:42 +08:00
docs: fix Lazyload register multilple times (#10456)
This commit is contained in:
parent
a593f864ab
commit
d507e97996
@ -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': {
|
||||
|
Loading…
x
Reference in New Issue
Block a user