fix: 当前选中文档显示

This commit is contained in:
xiaozzzi 2024-01-19 04:04:55 +08:00
parent ce8a4be6f7
commit 2c39c67ae9

View File

@ -1,8 +1,8 @@
<template>
<div class="doc-workbench-root">
<bl-col class="workbench-name" just="flex-start" align="flex-end" height="46px" v-show="curDoc !== undefined">
<span>{{ curDoc?.name }}</span>
<span style="font-size: 9px; padding-right: 5px">{{ curDoc?.id }}</span>
<bl-col class="workbench-name" just="flex-start" align="flex-end" height="46px" v-show="curArticle !== undefined">
<span>{{ curArticle?.name }}</span>
<span style="font-size: 9px; padding-right: 5px">{{ curArticle?.id }}</span>
</bl-col>
<bl-row class="wb-page-container">
<Transition name="wbpage-one">
@ -126,7 +126,7 @@
<script setup lang="ts">
import { ref, nextTick, inject, onDeactivated } from 'vue'
import { ArrowUp, ArrowDown } from '@element-plus/icons-vue'
import { provideKeyDocInfo, SortLevelColor } from '@renderer/views/doc/doc'
import { provideKeyCurArticleInfo, SortLevelColor } from '@renderer/views/doc/doc'
import { openNewArticleReferenceWindow } from '@renderer/assets/utils/electron'
import { useConfigStore } from '@renderer/stores/config'
import ArticleInfo from './ArticleInfo.vue'
@ -174,7 +174,7 @@ const toWorkbenchPage = (page: number) => {
//#endregion
//#region --------------------------------------------------< >--------------------------------------------------
const curDoc = inject(provideKeyDocInfo)
const curArticle = inject(provideKeyCurArticleInfo)
const onlyOpen = ref<boolean>(false) //
const onlySubject = ref<boolean>(false) //