godoos/frontend/src/components/desktop/OpeningDesktop.vue
2024-07-22 17:44:55 +08:00

46 lines
966 B
Vue
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<template>
<div class="loading">
<WinLogo></WinLogo>
<div id="text"></div>
<WinLoading></WinLoading>
<button v-if="isEmergencyRepair" @click="emergencyRepair">长时间无法开机点击紧急恢复</button>
</div>
</template>
<script lang="ts" setup>
import { onMounted, ref } from 'vue';
const isEmergencyRepair = ref(false);
onMounted(() => {
setTimeout(() => {
isEmergencyRepair.value = true;
}, 30000);
});
function emergencyRepair() {
localStorage.clear();
window.indexedDB.deleteDatabase('FileSystemDB');
window.location.reload();
}
</script>
<style scoped>
.loading {
position: absolute;
left: 0;
top: 0;
width: 100%;
height: 100%;
background-color: rgb(0, 119, 210);
user-select: none;
}
#text {
display: inline-block;
position: absolute;
width: 100%;
text-align: center;
top: 80%;
color: azure;
font-weight: 500;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
</style>