Commit d393bff1 authored by wuyongsheng's avatar wuyongsheng

feat: 分页白屏修改

parent 489ed282
......@@ -16,7 +16,7 @@ interface ICardTableProps {
const CardTable = (props: ICardTableProps) => {
const {
data,
data=[],
renderItem,
tableKey = "id",
numberOfColumns: propsNumberOfColumns = 3,
......@@ -79,7 +79,7 @@ const CardTable = (props: ICardTableProps) => {
{renderBefore()}
</div>
)}
{data.map((item, index) => {
{data?.map((item, index) => {
return (
<div
className={style.itemBox}
......
......@@ -2,7 +2,7 @@
* @Author: 吴永生#A02208 yongsheng.wu@wholion.com
* @Date: 2022-05-31 10:18:13
* @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
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
......@@ -58,7 +58,7 @@ const ProjectMembers = observer(() => {
// 获取模板列表
const { run: getTemplateInfo } = useMyRequest(getWorkbenchTemplate, {
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