Converted App.vue to composition api
This commit is contained in:
parent
2cfc2ae116
commit
d13222fde3
@ -4,20 +4,20 @@
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
export default {
|
||||
name: "app",
|
||||
mounted() {
|
||||
const loading = document.getElementById("loading");
|
||||
if(loading !== null) {
|
||||
loading.classList.add("done");
|
||||
<script setup lang="ts">
|
||||
import { onMounted } from 'vue';
|
||||
|
||||
onMounted(() => {
|
||||
const loading = document.getElementById("loading");
|
||||
if(loading !== null) {
|
||||
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>
|
||||
Loading…
Reference in New Issue
Block a user