{
console.log(item)
if (list.value.indexOf(item.name) > -1) {
- item.show = true
+ if (item.name == '关联应用') {
+ if (props.associatedComponents[0].dataList.length != 0) {
+ item.show = true
+ }
+ } else {
+ item.show = true
+ }
}
})
select.value = navList.value.filter(
@@ -119,7 +126,7 @@
list.value = []
let arr = [
'组件视频介绍',
- '关联能力',
+ '关联应用',
'功能介绍',
'应用场景',
'应用案例',
@@ -144,12 +151,18 @@
list.value.push('组件展示')
}
})
- list.value.push('关联能力')
+ list.value.push('关联应用')
list.value.push('使用方式')
navList.value.forEach((item) => {
console.log(item)
if (list.value.indexOf(item.name) > -1) {
- item.show = true
+ if (item.name == '关联应用') {
+ if (props.associatedComponents[0].dataList.length != 0) {
+ item.show = true
+ }
+ } else {
+ item.show = true
+ }
}
})
if (list.value.length > 0) {
diff --git a/front/src/views/detailsAll/components/Developer/DeveloperAssociatedAbility.vue b/front/src/views/detailsAll/components/Developer/DeveloperAssociatedAbility.vue
index 9853e728..e03abb90 100644
--- a/front/src/views/detailsAll/components/Developer/DeveloperAssociatedAbility.vue
+++ b/front/src/views/detailsAll/components/Developer/DeveloperAssociatedAbility.vue
@@ -1,6 +1,6 @@
-
+
{
console.log(item)
if (list.value.indexOf(item.name) > -1) {
- if (item.name == '关联能力') {
+ if (item.name == '关联应用') {
if (props.associatedComponents[0].dataList.length != 0) {
item.show = true
}
@@ -122,13 +122,13 @@
list.value.push('组件展示')
}
})
- list.value.push('关联能力')
+ list.value.push('关联应用')
list.value.push('组件试用')
list.value.push('使用方式')
navList.value.forEach((item) => {
console.log(item)
if (list.value.indexOf(item.name) > -1) {
- if (item.name == '关联能力') {
+ if (item.name == '关联应用') {
if (props.associatedComponents[0].dataList.length != 0) {
item.show = true
}
diff --git a/front/src/views/detailsAll/components/LayerService/LayerServiceAssociatedAbility.vue b/front/src/views/detailsAll/components/LayerService/LayerServiceAssociatedAbility.vue
index 95e54415..0173725e 100644
--- a/front/src/views/detailsAll/components/LayerService/LayerServiceAssociatedAbility.vue
+++ b/front/src/views/detailsAll/components/LayerService/LayerServiceAssociatedAbility.vue
@@ -1,6 +1,6 @@
-
+
{
console.log(item)
if (list.value.indexOf(item.name) > -1) {
- item.show = true
+ if (item.name == '关联应用') {
+ if (props.associatedComponents[0].dataList.length != 0) {
+ item.show = true
+ }
+ } else {
+ item.show = true
+ }
}
})
select.value = navList.value.filter(
@@ -196,11 +203,17 @@
list.value.push('使用方式')
}
})
- list.value.push('关联能力')
+ list.value.push('关联应用')
navList.value.forEach((item) => {
console.log(item)
if (list.value.indexOf(item.name) > -1) {
- item.show = true
+ if (item.name == '关联应用') {
+ if (props.associatedComponents[0].dataList.length != 0) {
+ item.show = true
+ }
+ } else {
+ item.show = true
+ }
}
})
if (list.value.length > 0) {