fix(client): デッキUI時に ページで表示 ボタンが機能しない問題を修正

Fix #9010
This commit is contained in:
syuilo 2022-07-17 05:12:22 +09:00
parent a974ab00d7
commit 77d4d6e377
4 changed files with 13 additions and 5 deletions

View file

@ -89,7 +89,8 @@ import { mainRouter } from '@/router';
import { unisonReload } from '@/scripts/unison-reload';
const XStatusBars = defineAsyncComponent(() => import('@/ui/_common_/statusbars.vue'));
mainRouter.navHook = (path): boolean => {
mainRouter.navHook = (path, flag): boolean => {
if (flag === 'forcePage') return false;
const noMainColumn = !deckStore.state.columns.some(x => x.type === 'main');
if (deckStore.state.navWindow || noMainColumn) {
os.pageWindow(path);