Converted App.vue to composition api

This commit is contained in:
Joep 2023-09-09 13:52:38 +02:00
parent 2cfc2ae116
commit d13222fde3

View File

@ -4,20 +4,20 @@
</div> </div>
</template> </template>
<script lang="ts"> <script setup lang="ts">
export default { import { onMounted } from 'vue';
name: "app",
mounted() { onMounted(() => {
const loading = document.getElementById("loading"); const loading = document.getElementById("loading");
if(loading !== null) { if(loading !== null) {
loading.classList.add("done"); loading.classList.add("done");
setTimeout(function () {
if(loading.parentNode !== null) {
loading.parentNode.removeChild(loading);
}
}, 200);
}
})
setTimeout(function () {
if(loading.parentNode !== null) {
loading.parentNode.removeChild(loading);
}
}, 200);
}
},
};
</script> </script>