fix(TagsView/index.vue): 系统设置是否开启tagsView无效问题修复
This commit is contained in:
@@ -10,7 +10,7 @@
|
|||||||
|
|
||||||
<div class="drawer-item">
|
<div class="drawer-item">
|
||||||
<span>开启 Tags-View</span>
|
<span>开启 Tags-View</span>
|
||||||
<el-switch v-model="state.tagsView" class="drawer-switch"/>
|
<el-switch v-model="tagsView" class="drawer-switch"/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="drawer-item">
|
<div class="drawer-item">
|
||||||
@@ -47,7 +47,7 @@ watch(() => state.fixedHeader, (value) => {
|
|||||||
})
|
})
|
||||||
|
|
||||||
watch(() => state.tagsView, (value) => {
|
watch(() => state.tagsView, (value) => {
|
||||||
useSettingStoreHook().changeSetting({key: 'showTagsView', value: value})
|
useSettingStoreHook().changeSetting({key: 'tagsView', value: value})
|
||||||
})
|
})
|
||||||
|
|
||||||
watch(() => state.sidebarLogo, (value) => {
|
watch(() => state.sidebarLogo, (value) => {
|
||||||
|
|||||||
@@ -45,7 +45,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts" setup>
|
<script setup lang="ts" >
|
||||||
|
|
||||||
import {useTagsViewStoreHook} from '@/store/modules/tagsView'
|
import {useTagsViewStoreHook} from '@/store/modules/tagsView'
|
||||||
import {usePermissionStoreHook} from '@/store/modules/permission'
|
import {usePermissionStoreHook} from '@/store/modules/permission'
|
||||||
@@ -240,7 +240,6 @@ function closeAllTags(view: TagView) {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
function openMenu(tag: TagView, e: MouseEvent) {
|
function openMenu(tag: TagView, e: MouseEvent) {
|
||||||
const menuMinWidth = 105
|
const menuMinWidth = 105
|
||||||
const offsetLeft = ctx.$el.getBoundingClientRect().left // container margin left
|
const offsetLeft = ctx.$el.getBoundingClientRect().left // container margin left
|
||||||
|
|||||||
Reference in New Issue
Block a user