Commit d393bff1 authored by wuyongsheng's avatar wuyongsheng

feat: 分页白屏修改

parent 489ed282
...@@ -16,7 +16,7 @@ interface ICardTableProps { ...@@ -16,7 +16,7 @@ interface ICardTableProps {
const CardTable = (props: ICardTableProps) => { const CardTable = (props: ICardTableProps) => {
const { const {
data, data=[],
renderItem, renderItem,
tableKey = "id", tableKey = "id",
numberOfColumns: propsNumberOfColumns = 3, numberOfColumns: propsNumberOfColumns = 3,
...@@ -79,7 +79,7 @@ const CardTable = (props: ICardTableProps) => { ...@@ -79,7 +79,7 @@ const CardTable = (props: ICardTableProps) => {
{renderBefore()} {renderBefore()}
</div> </div>
)} )}
{data.map((item, index) => { {data?.map((item, index) => {
return ( return (
<div <div
className={style.itemBox} className={style.itemBox}
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Author: 吴永生#A02208 yongsheng.wu@wholion.com * @Author: 吴永生#A02208 yongsheng.wu@wholion.com
* @Date: 2022-05-31 10:18:13 * @Date: 2022-05-31 10:18:13
* @LastEditors: 吴永生 15770852798@163.com * @LastEditors: 吴永生 15770852798@163.com
* @LastEditTime: 2022-10-27 14:04:32 * @LastEditTime: 2022-12-13 10:41:08
* @FilePath: /bkunyun/src/views/Project/ProjectSetting/index.tsx * @FilePath: /bkunyun/src/views/Project/ProjectSetting/index.tsx
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/ */
...@@ -58,7 +58,7 @@ const ProjectMembers = observer(() => { ...@@ -58,7 +58,7 @@ const ProjectMembers = observer(() => {
// 获取模板列表 // 获取模板列表
const { run: getTemplateInfo } = useMyRequest(getWorkbenchTemplate, { const { run: getTemplateInfo } = useMyRequest(getWorkbenchTemplate, {
onSuccess: (result: any) => { onSuccess: (result: any) => {
setTemplateList(result.data); setTemplateList(result.data.content);
}, },
}); });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment