Merge pull request #559 from SwwweetOrange/feat-dynamic-waline

dynamic import waline/client
This commit is contained in:
tangly1024
2022-12-10 16:00:41 +08:00
committed by GitHub
6 changed files with 9 additions and 6 deletions

View File

@@ -1,7 +1,7 @@
import React from 'react'
import { RecentComments } from '@waline/client'
import BLOG from '@/blog.config'
import Link from 'next/link'
import { RecentComments } from '@waline/client'
/**
* @see https://waline.js.org/guide/get-started.html

View File

@@ -6,8 +6,9 @@ import CategoryGroup from './CategoryGroup'
import TagGroups from './TagGroups'
import CONFIG_NEXT from '../config_next'
import { useRouter } from 'next/router'
import NextRecentComments from './NextRecentComments'
import BLOG from '@/blog.config'
import dynamic from 'next/dynamic'
const NextRecentComments = dynamic(() => import('./NextRecentComments'))
/**
* 侧边平铺