Next主题 SEO

This commit is contained in:
tangly1024.com
2024-01-31 18:45:11 +08:00
parent eced20bfe7
commit 765ba1cb25
21 changed files with 88 additions and 89 deletions

View File

@@ -1,7 +1,7 @@
/* eslint-disable no-undef */
import { siteConfig } from '@/lib/config'
import { useGlobal } from '@/lib/global'
import { loadExternalResource } from '@/lib/utils'
import { isMobile, loadExternalResource } from '@/lib/utils'
import { useEffect } from 'react'
/**
@@ -14,7 +14,7 @@ export default function Live2D() {
const petLink = siteConfig('WIDGET_PET_LINK')
useEffect(() => {
if (showPet) {
if (showPet && !isMobile()) {
Promise.all([
loadExternalResource('https://cdn.jsdelivr.net/gh/stevenjoezhang/live2d-widget@latest/live2d.min.js', 'js')
]).then((e) => {