提交 ec902a69 编写于 作者: 郝先瑞

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

上级 2791cb72
......@@ -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) => {
......
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册