修改布局

This commit is contained in:
velor2012
2024-01-29 16:09:27 +08:00
parent bc93ccc50f
commit 9001edd693
5 changed files with 115 additions and 34 deletions

View File

@@ -2,14 +2,19 @@ import { AdSlot } from '@/components/GoogleAdsense'
import Live2D from '@/components/Live2D'
import Announcement from './Announcement'
import Catalog from './Catalog'
import { useEffect } from 'react'
/**
* 侧边栏
* @param {*} props
* @returns
*/
let counter = 0;
export default function SideBar (props) {
const { notice } = props
useEffect(()=>{
console.log('sidebar 渲染次数: ', counter++)
}, [])
return (<>
<aside>