优化加载

This commit is contained in:
tangly1024.com
2023-07-20 17:47:38 +08:00
parent 309f7e8215
commit 7f4fcd5900

View File

@@ -1,7 +1,7 @@
import BLOG from '@/blog.config'
import { useGlobal } from '@/lib/global'
import copy from 'copy-to-clipboard'
import QRCode from 'qrcode.react'
import dynamic from 'next/dynamic'
import { useState } from 'react'
import {
@@ -49,6 +49,13 @@ import {
HatenaIcon
} from 'react-share'
const QRCode = dynamic(
() => {
return import('qrcode.react')
},
{ ssr: false }
)
/**
* @author https://github.com/txs
* @param {*} param0