mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-01-02 19:20:54 -05:00
Feat: Use Async Component
This commit is contained in:
parent
6ed1d8cb2f
commit
8f150aaeb9
@ -167,6 +167,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
import { defineAsyncComponent } from "vue";
|
||||||
import { useToast } from "vue-toastification"
|
import { useToast } from "vue-toastification"
|
||||||
const toast = useToast()
|
const toast = useToast()
|
||||||
import Confirm from "../components/Confirm.vue";
|
import Confirm from "../components/Confirm.vue";
|
||||||
@ -176,7 +177,7 @@ import Datetime from "../components/Datetime.vue";
|
|||||||
import CountUp from "../components/CountUp.vue";
|
import CountUp from "../components/CountUp.vue";
|
||||||
import Uptime from "../components/Uptime.vue";
|
import Uptime from "../components/Uptime.vue";
|
||||||
import Pagination from "v-pagination-3";
|
import Pagination from "v-pagination-3";
|
||||||
import PingChart from "../components/PingChart.vue";
|
const PingChart = defineAsyncComponent(() => import("../components/PingChart.vue"));
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
|
Loading…
Reference in New Issue
Block a user