mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-06-08 23:16:54 +00:00
优化加载
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
import BLOG from '@/blog.config'
|
import BLOG from '@/blog.config'
|
||||||
import { useGlobal } from '@/lib/global'
|
import { useGlobal } from '@/lib/global'
|
||||||
import copy from 'copy-to-clipboard'
|
import copy from 'copy-to-clipboard'
|
||||||
import QRCode from 'qrcode.react'
|
import dynamic from 'next/dynamic'
|
||||||
import { useState } from 'react'
|
import { useState } from 'react'
|
||||||
|
|
||||||
import {
|
import {
|
||||||
@@ -49,6 +49,13 @@ import {
|
|||||||
HatenaIcon
|
HatenaIcon
|
||||||
} from 'react-share'
|
} from 'react-share'
|
||||||
|
|
||||||
|
const QRCode = dynamic(
|
||||||
|
() => {
|
||||||
|
return import('qrcode.react')
|
||||||
|
},
|
||||||
|
{ ssr: false }
|
||||||
|
)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author https://github.com/txs
|
* @author https://github.com/txs
|
||||||
* @param {*} param0
|
* @param {*} param0
|
||||||
|
|||||||
Reference in New Issue
Block a user