feat: hidden previewer menu of status bar when opening help document

This commit is contained in:
purocean
2022-07-31 23:50:11 +08:00
parent 0875e9e53d
commit 18957554e8
+1 -1
View File
@@ -9,7 +9,7 @@ export default {
id: 'status-bar-previewer',
position: 'right',
title: ctx.i18n.t('previewer'),
hidden: previewers.length < 1,
hidden: previewers.length < 1 || ctx.store.state.currentFile?.repo === '__help__',
list: previewers.map(item => ({
id: item.name,
type: 'normal' as any,