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