diff --git a/jshERP-web/src/components/tools/UserMenu.vue b/jshERP-web/src/components/tools/UserMenu.vue index 4eecb9ae..fd180c40 100644 --- a/jshERP-web/src/components/tools/UserMenu.vue +++ b/jshERP-web/src/components/tools/UserMenu.vue @@ -26,7 +26,7 @@ - + 腾讯云促销 @@ -71,7 +71,7 @@ import DepartSelect from './DepartSelect' import { mapActions, mapGetters,mapState } from 'vuex' import { mixinDevice } from '@/utils/mixin.js' - import { getFileAccessHttpUrl } from "@/api/manage" + import { getFileAccessHttpUrl,getAction } from "@/api/manage" export default { name: "UserMenu", @@ -82,6 +82,7 @@ searchMenuOptions:[], searchMenuComp: 'span', searchMenuVisible: false, + showAd: false // update-begin author:sunjianlei date:20200219 for: 头部菜单搜索规范命名 -------------- } }, @@ -103,6 +104,7 @@ let lists = [] this.searchMenus(lists,this.permissionMenuList) this.searchMenuOptions=[...lists] + this.isShowAd() }, computed: { ...mapState({ @@ -188,9 +190,16 @@ this.$router.push({ path: route.path }) } this.searchMenuVisible = false - } + }, // update_end author:sunjianlei date:20191230 for: 解决外部链接打开失败的问题 /*update_end author:zhaoxin date:20191129 for: 做头部菜单栏导航*/ + isShowAd() { + getAction('/platformConfig/isShowAd', {}).then((res) => { + if (res && res.code === 200) { + this.showAd = res.data + } + }) + } } }