release v2.0.0 #4
|
@ -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));
|
||||
|
|
Loading…
Reference in New Issue