Browse Source

fix:隐藏站内信和文档按钮

pull/107/head
肖晋飞 2 weeks ago
parent
commit
05de057429
  1. 11
      src/layouts/default/header/components/user-dropdown/index.vue
  2. 5
      src/layouts/default/header/index.vue

11
src/layouts/default/header/components/user-dropdown/index.vue

@ -94,11 +94,12 @@ function handleMenuClick(e: MenuInfo) {
<template #overlay>
<Menu @click="handleMenuClick">
<MenuItem key="profile" :text="t('layout.header.accountCenter')" icon="ion:person-outline" />
<MenuItem
v-if="getShowDoc" key="doc" :text="t('layout.header.dropdownItemDoc')"
icon="ion:document-text-outline"
/>
<MenuDivider v-if="getShowDoc" />
<!--12-26隐藏文档按钮-->
<!-- <MenuItem-->
<!-- v-if="getShowDoc" key="doc" :text="t('layout.header.dropdownItemDoc')"-->
<!-- icon="ion:document-text-outline"-->
<!-- />-->
<!-- <MenuDivider v-if="getShowDoc" />-->
<MenuItem
v-if="getUseLockPage" key="lock" :text="t('layout.header.tooltipLock')"
icon="ion:lock-closed-outline"

5
src/layouts/default/header/index.vue

@ -109,12 +109,13 @@ const getMenuMode = computed(() => {
<!-- action -->
<div :class="`${prefixCls}-action`">
<AppSearch v-if="getShowSearch" :class="`${prefixCls}-action__item search-item`" />
<ErrorAction v-if="getUseErrorHandle" :class="`${prefixCls}-action__item error-action`" />
<Notify v-if="getShowNotice" :class="`${prefixCls}-action__item notify-item`" />
<!-- 12.26隐藏掉站内信-->
<!-- <Notify v-if="getShowNotice" :class="`${prefixCls}-action__item notify-item`" />-->
<FullScreen v-if="getShowFullScreen" :class="`${prefixCls}-action__item fullscreen-item`" />

Loading…
Cancel
Save