'admin-21.10.18:优化tagsview问题'

This commit is contained in:
lyt 2021-10-18 20:21:22 +08:00
parent 04ca9b04c1
commit 6467f57cf2
2 changed files with 3 additions and 5 deletions

View File

@ -82,7 +82,7 @@ export default {
if (getThemeConfig.value.isShareTagsView) {
return v.path === state.routePath;
} else {
return v.url === state.routeActive;
return v.url ? v.url === state.routeActive : v.path === state.routeActive;
}
};
// tagsViewList
@ -507,8 +507,6 @@ export default {
.layout-navbars-tagsview {
background-color: var(--el-color-white);
border-bottom: 1px solid #f1f2f3;
z-index: 1;
position: relative;
::v-deep(.el-scrollbar__wrap) {
overflow-x: auto !important;
}

View File

@ -1,5 +1,5 @@
<template>
<div class="layout-view-bg-white flex" :style="{ height: `calc(100vh - ${setIframeHeight}`, border: 'none' }" v-loading="iframeLoading">
<div class="layout-view-bg-white flex mt1" :style="{ height: `calc(100vh - ${setIframeHeight}`, border: 'none' }" v-loading="iframeLoading">
<iframe :src="iframeUrl" frameborder="0" height="100%" width="100%" id="iframe" v-show="!iframeLoading"></iframe>
</div>
</template>
@ -36,7 +36,7 @@ export default defineComponent({
if (isTagsViewCurrenFull) {
return `0px`;
} else {
if (isTagsview) return `84px`;
if (isTagsview) return `85px`;
else return `50px`;
}
});