提交 c87335d5 authored 作者: lihuihui's avatar lihuihui

修改bug

上级 f6832d3f
......@@ -39,8 +39,8 @@ const listOptions = $computed(() => {
label: '课件标题',
prop: 'name',
align: 'center',
computed: (row: any) => {
return row.row.name.length > 10 ? `${row.row.name.slice(0, 10)}...` : row.row.name
computed({ row }: any) {
return row.name?.length > 10 ? `${row.name.slice(0, 10)}...` : row.name
}
},
{ label: '课件分类', prop: 'classification_name', align: 'center' },
......
......@@ -39,8 +39,8 @@ const listOptions = $computed(() => {
label: '教案标题',
prop: 'name',
align: 'center',
computed: (row: any) => {
return row.row.name.length > 10 ? `${row.row.name.slice(0, 10)}...` : row.row.name
computed({ row }: any) {
return row.name?.length > 10 ? `${row.name.slice(0, 10)}...` : row.name
}
},
{ label: '教案分类', prop: 'classification_name', align: 'center' },
......
......@@ -40,8 +40,8 @@ const listOptions = $computed(() => {
label: '其他标题',
prop: 'name',
align: 'center',
computed: (row: any) => {
return row.row.name.length > 10 ? `${row.row.name.slice(0, 10)}...` : row.row.name
computed({ row }: any) {
return row.name?.length > 10 ? `${row.name.slice(0, 10)}...` : row.name
}
},
{ label: '课件分类', prop: 'classification_name', align: 'center' },
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论