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