|
@@ -185,9 +185,9 @@ async function loadData(id: number) {
|
|
|
d.contentProps = {
|
|
d.contentProps = {
|
|
|
tabs: [
|
|
tabs: [
|
|
|
{ id: 0, text: '简介', visible: true },
|
|
{ id: 0, text: '简介', visible: true },
|
|
|
- { id: 1, text: '相册', visible: d.images.length > 0 },
|
|
|
|
|
- { id: 2, text: '音频', visible: Boolean(d.audio) },
|
|
|
|
|
- { id: 3, text: '视频', visible: Boolean(d.video) },
|
|
|
|
|
|
|
+ { id: 1, text: '相册', visible: false && d.images.length > 0 },
|
|
|
|
|
+ { id: 2, text: '音频', visible: false && Boolean(d.audio) },
|
|
|
|
|
+ { id: 3, text: '视频', visible: false && Boolean(d.video) },
|
|
|
{ id: 4, text: '非遗作品', visible: Boolean(d.worksList && (d.worksList as any[]).length > 0) },
|
|
{ id: 4, text: '非遗作品', visible: Boolean(d.worksList && (d.worksList as any[]).length > 0) },
|
|
|
{ id: 5, text: '非遗传习中心', visible: Boolean(d.ichSitesList && (d.ichSitesList as any[]).length > 0) },
|
|
{ id: 5, text: '非遗传习中心', visible: Boolean(d.ichSitesList && (d.ichSitesList as any[]).length > 0) },
|
|
|
{ id: 6, text: '非遗传承人', visible: Boolean(d.inheritorsList && (d.inheritorsList as any[]).length > 0) },
|
|
{ id: 6, text: '非遗传承人', visible: Boolean(d.inheritorsList && (d.inheritorsList as any[]).length > 0) },
|