面试鸭项目中的代码冲突
https://github.com/liyupi/mianshiya-next/blob/master/mianshiya-next-frontend/src/app/banks/page.tsx
这个文件中同时出现了"use server"和"message.error",我在我的项目里也这么写的,但是运行的时候报错啊,提示为:" ⨯ Error: Attempted to call error() from the server but error is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component."
鱼皮哥怎么解决的?评论
相关内容
0个评论
全部评论
点击登录,快来和大家讨论吧~
表情
图片
暂无评论
作者分享
请问大家,本站post页面(例如https://www.codefather.cn/post/1936081812592168962)的粘性侧边栏是怎么实现的?是不是需要改BasicLayout的css?不知道开发大佬是否方便透露。
AI告诉我需要这样修改BasicLayout的index.css和index.tsx:
```css
#basicLayout .ant-pro-layout-content {
overflow: visible !important;
}
```
```
<ProLayout
layout="top"
location={{
pathname,
}}
fixedHeader={true}
>
<div>
<Row gutter={[12, 0]} style={{ alignItems: "flex-start" }}>
<Col xs={24} sm={24} md={16}>
{children}
</Col>
<Col xs={0} sm={0} md={8}>
<Sidebar />
</Col>
</Row>
</div>
</ProLayout>
```
Sidebar如下,使用了StickyBox:
```
'use client';
import React from 'react';
import StickyBox from 'react-sticky-box';
const Sidebar: React.FC = () => {
return (
<StickyBox>
<div>
....
</div>
</StickyBox>
);
};
export default Sidebar;
```
但是无效……
2
请问大家有没有好用的云IDE,就是不用自己在本地搭环境,在浏览器中开发的那种。
3
请问大家,以面试鸭项目为例,把导航栏设置为固定位置(fixHeader={true})后,怎么实现侧边栏的粘顶粘底效果?就是侧边栏滚动到自己的底部就停止,不会跟着主内容区一直滚动。
1
gap太久了,打算去华为od了……
2
请问下大家,boss直聘、内推、官网投递都会有面评是吗?(大厂)
1
