Feat: Use Async Component

This commit is contained in:
Nelson Chan 2021-08-12 00:47:58 +08:00
parent 6ed1d8cb2f
commit 8f150aaeb9

View file

@ -167,6 +167,7 @@
</template>
<script>
import { defineAsyncComponent } from "vue";
import { useToast } from "vue-toastification"
const toast = useToast()
import Confirm from "../components/Confirm.vue";
@ -176,7 +177,7 @@ import Datetime from "../components/Datetime.vue";
import CountUp from "../components/CountUp.vue";
import Uptime from "../components/Uptime.vue";
import Pagination from "v-pagination-3";
import PingChart from "../components/PingChart.vue";
const PingChart = defineAsyncComponent(() => import("../components/PingChart.vue"));
export default {
components: {