From 237ac41c9da4a4529224f6ef6b87c302a1c683bf Mon Sep 17 00:00:00 2001 From: tangly1024 Date: Fri, 15 Mar 2024 22:44:23 +0800 Subject: [PATCH] =?UTF-8?q?waline=20component=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/WalineComponent.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/WalineComponent.js b/components/WalineComponent.js index 37247d48..cd2d78f5 100644 --- a/components/WalineComponent.js +++ b/components/WalineComponent.js @@ -1,4 +1,4 @@ -import React, { createRef } from 'react' +import { createRef } from 'react' import { init } from '@waline/client' import { useRouter } from 'next/router' import '@waline/client/dist/waline.css' @@ -21,7 +21,7 @@ const WalineComponent = (props) => { } } - React.useEffect(() => { + useEffect(() => { if (!waline) { waline = init({ ...props,