fix(client): some fixes

This commit is contained in:
syuilo 2022-07-21 00:32:41 +09:00
parent 00be79ce13
commit d72ac908f4
3 changed files with 6 additions and 0 deletions

View File

@ -168,6 +168,7 @@ export default defineComponent({
onInput, onInput,
onKeydown, onKeydown,
updated, updated,
i18n,
}; };
}, },
}); });

View File

@ -170,6 +170,7 @@ function onHeaderMousedown(evt: MouseEvent) {
beforeClickedAt = Date.now(); beforeClickedAt = Date.now();
const main = rootEl; const main = rootEl;
if (main == null) return;
if (!contains(main, document.activeElement)) main.focus(); if (!contains(main, document.activeElement)) main.focus();

View File

@ -141,6 +141,10 @@ export const routes = [{
path: '/webhook', path: '/webhook',
name: 'webhook', name: 'webhook',
component: page(() => import('./pages/settings/webhook.vue')), component: page(() => import('./pages/settings/webhook.vue')),
}, {
path: '/deck',
name: 'deck',
component: page(() => import('./pages/settings/deck.vue')),
}, { }, {
path: '/other', path: '/other',
name: 'other', name: 'other',