chore(client): fix #8858

This commit is contained in:
syuilo 2022-06-28 17:59:23 +09:00
parent 30bdfde4cc
commit a50b1d69a1
2 changed files with 12 additions and 0 deletions

View file

@ -65,6 +65,13 @@ import { $i } from '@/account';
import { i18n } from '@/i18n';
import { mainRouter } from '@/router';
if (deckStore.state.navWindow) {
mainRouter.navHook = (path) => {
os.pageWindow(path);
return true;
};
}
const isMobile = ref(window.innerWidth <= 500);
window.addEventListener('resize', () => {
isMobile.value = window.innerWidth <= 500;