fix(TagsView/index.vue): 系统设置是否开启tagsView无效问题修复

This commit is contained in:
郝先瑞
2022-03-02 22:35:31 +08:00
parent 2791cb7249
commit ec902a6920
2 changed files with 3 additions and 4 deletions

View File

@@ -10,7 +10,7 @@
<div class="drawer-item">
<span>开启 Tags-View</span>
<el-switch v-model="state.tagsView" class="drawer-switch"/>
<el-switch v-model="tagsView" class="drawer-switch"/>
</div>
<div class="drawer-item">
@@ -47,7 +47,7 @@ watch(() => state.fixedHeader, (value) => {
})
watch(() => state.tagsView, (value) => {
useSettingStoreHook().changeSetting({key: 'showTagsView', value: value})
useSettingStoreHook().changeSetting({key: 'tagsView', value: value})
})
watch(() => state.sidebarLogo, (value) => {

View File

@@ -45,7 +45,7 @@
</div>
</template>
<script lang="ts" setup>
<script setup lang="ts" >
import {useTagsViewStoreHook} from '@/store/modules/tagsView'
import {usePermissionStoreHook} from '@/store/modules/permission'
@@ -240,7 +240,6 @@ function closeAllTags(view: TagView) {
})
}
function openMenu(tag: TagView, e: MouseEvent) {
const menuMinWidth = 105
const offsetLeft = ctx.$el.getBoundingClientRect().left // container margin left