From 7f4fcd59004d66285100d77e4d67ae7554b070dd Mon Sep 17 00:00:00 2001 From: "tangly1024.com" Date: Thu, 20 Jul 2023 17:47:38 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=8A=A0=E8=BD=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/ShareButtons.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/components/ShareButtons.js b/components/ShareButtons.js index 2aee7a78..b5511cfa 100644 --- a/components/ShareButtons.js +++ b/components/ShareButtons.js @@ -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