module-menu-vue 0.0.69 → 0.0.70
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
lineHeight: item.children.length > 3 ? '45px' : '70px',
|
|
27
27
|
borderBottom: index === menuList.length - 1 ? '0px' : '1px solid #E9E9E9',
|
|
28
28
|
}">
|
|
29
|
-
<span v-if="index === 0 &&
|
|
29
|
+
<span v-if="index === 0 && isExist">
|
|
30
30
|
<img :src="require('./../../assets/exchange_portal_logo.svg')" class="middle exchangeCss" />
|
|
31
31
|
<span class="middle textPad" @click="toExchangePage()">政务共享交换平台</span>
|
|
32
32
|
</span>
|
|
@@ -81,6 +81,7 @@ export default {
|
|
|
81
81
|
menuListInit: menuListInit,
|
|
82
82
|
sysNameMap: sysNameMap,
|
|
83
83
|
showCollapse: true,
|
|
84
|
+
isExist: false
|
|
84
85
|
}
|
|
85
86
|
},
|
|
86
87
|
created () {
|
|
@@ -138,6 +139,10 @@ export default {
|
|
|
138
139
|
const menuObj = JSON.parse(sessionStorage.getItem('bigdata-menu'));
|
|
139
140
|
if (menuObj) {
|
|
140
141
|
this.sessionMenu = [...menuObj.content]
|
|
142
|
+
// 判断是否展示 政务共享平台 菜单(烟台需求)
|
|
143
|
+
this.isExist = this.sessionMenu.some(obj => {
|
|
144
|
+
return obj.path === '/exchange'
|
|
145
|
+
})
|
|
141
146
|
}
|
|
142
147
|
}
|
|
143
148
|
},
|