Fixed some ts errors

This commit is contained in:
Ferdinand Thiessen 2020-11-17 03:34:05 +01:00
parent 5061d18956
commit 82d88f50d0
1 changed files with 2 additions and 7 deletions

View File

@ -34,12 +34,7 @@
</template>
<script lang="ts">
import {
defineComponent,
ref,
onMounted,
onUnmounted,
} from '@vue/composition-api';
import { defineComponent, ref, onUnmounted } from '@vue/composition-api';
export default defineComponent({
name: 'Offline',
@ -49,7 +44,7 @@ export default defineComponent({
reload.value -= 1;
if (reload.value === 0) {
const path = <string | null>root.$route.query.redirect || '/login';
root.$router.replace({ path: path });
void root.$router.replace({ path: path });
}
}, 1000);
onUnmounted(() => clearInterval(ival));