fix lint
This commit is contained in:
parent
f25963e2c2
commit
7f534a41a6
19 changed files with 32 additions and 32 deletions
|
|
@ -34,7 +34,7 @@ function resetDisconnected() {
|
|||
}
|
||||
|
||||
function reload() {
|
||||
location.reload();
|
||||
window.location.reload();
|
||||
}
|
||||
|
||||
useStream().on('_disconnected_', onDisconnected);
|
||||
|
|
|
|||
|
|
@ -139,7 +139,7 @@ if (window.innerWidth < 1024) {
|
|||
const currentUI = miLocalStorage.getItem('ui');
|
||||
miLocalStorage.setItem('ui_temp', currentUI ?? 'default');
|
||||
miLocalStorage.setItem('ui', 'default');
|
||||
location.reload();
|
||||
window.location.reload();
|
||||
}
|
||||
|
||||
document.documentElement.style.overflowY = 'scroll';
|
||||
|
|
|
|||
|
|
@ -170,7 +170,7 @@ if (window.innerWidth > 1024) {
|
|||
if (tempUI) {
|
||||
miLocalStorage.setItem('ui', tempUI);
|
||||
miLocalStorage.removeItem('ui_temp');
|
||||
location.reload();
|
||||
window.location.reload();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -37,7 +37,7 @@ const isRoot = computed(() => mainRouter.currentRoute.value.name === 'index');
|
|||
|
||||
const pageMetadata = ref<null | PageMetadata>(null);
|
||||
|
||||
const showBottom = !(new URLSearchParams(location.search)).has('zen') && ui === 'deck';
|
||||
const showBottom = !(new URLSearchParams(window.location.search)).has('zen') && ui === 'deck';
|
||||
|
||||
provide(DI.router, mainRouter);
|
||||
provideMetadataReceiver((metadataGetter) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue