2018-02-01 12:17:04 +00:00
|
|
|
<template>
|
2024-07-30 17:45:27 +00:00
|
|
|
<router-view></router-view>
|
2018-02-01 12:17:04 +00:00
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
2024-07-30 17:45:27 +00:00
|
|
|
import { onMounted } from 'vue';
|
|
|
|
import { mutations } from "@/store"; // Import your store's mutations
|
2021-04-20 19:51:10 +00:00
|
|
|
|
2018-02-01 12:17:04 +00:00
|
|
|
export default {
|
2021-03-21 11:51:58 +00:00
|
|
|
name: "app",
|
2023-10-19 01:15:01 +00:00
|
|
|
computed: {},
|
2024-07-30 17:45:27 +00:00
|
|
|
setup() {
|
|
|
|
onMounted(() => {
|
|
|
|
mutations.setLoading(false); // Call your mutation or method to set loading to false
|
|
|
|
// Query the loading element and remove it from the DOM
|
|
|
|
const loadingDiv = document.getElementById('loading');
|
|
|
|
if (loadingDiv) {
|
|
|
|
loadingDiv.remove();
|
|
|
|
}
|
|
|
|
});
|
|
|
|
},
|
2021-03-21 11:51:58 +00:00
|
|
|
};
|
2018-02-01 12:17:04 +00:00
|
|
|
</script>
|
|
|
|
|
|
|
|
<style>
|
2023-10-09 22:24:48 +00:00
|
|
|
/* Always load styles.css */
|
2021-03-21 11:51:58 +00:00
|
|
|
@import "./css/styles.css";
|
2023-10-09 22:24:48 +00:00
|
|
|
@import "./css/dark.css";
|
2018-02-01 12:17:04 +00:00
|
|
|
</style>
|