7/24 收银台 日期筛选,合计
This commit is contained in:
@@ -34,13 +34,13 @@
|
||||
</div>
|
||||
<template #dropdown>
|
||||
<el-dropdown-menu>
|
||||
<el-dropdown-item divided command="changecommunity">
|
||||
<el-dropdown-item divided command="changecommunity" v-if="isShow">
|
||||
<span>{{ proxy.$t('navbar.community') }}</span>
|
||||
</el-dropdown-item>
|
||||
<router-link to="/system/user/profile">
|
||||
<router-link to="/system/user/profile" v-if="isShow">
|
||||
<el-dropdown-item>{{ proxy.$t('navbar.personalCenter') }}</el-dropdown-item>
|
||||
</router-link>
|
||||
<el-dropdown-item divided command="logout">
|
||||
<el-dropdown-item :divided="isShow" command="logout">
|
||||
<span>{{ proxy.$t('navbar.logout') }}</span>
|
||||
</el-dropdown-item>
|
||||
</el-dropdown-menu>
|
||||
@@ -109,7 +109,14 @@ const changecommunity = () => {
|
||||
path: '/community'
|
||||
});
|
||||
};
|
||||
|
||||
const route = useRoute();
|
||||
const isShow = ref(true);
|
||||
const hiddenAction = ['communitylist'];
|
||||
onMounted(() => {
|
||||
if (hiddenAction.includes(typeof route.name === 'string' ? route.name : '')) {
|
||||
isShow.value = false;
|
||||
}
|
||||
});
|
||||
const emits = defineEmits(['setLayout']);
|
||||
const setLayout = () => {
|
||||
emits('setLayout');
|
||||
|
||||
Reference in New Issue
Block a user