Sha256: 66f18c5028a84eb1f3e2a426d5f500ca3d36441a9002b08c67f32e7d04f35ff6
Contents?: true
Size: 861 Bytes
Versions: 14
Compression:
Stored size: 861 Bytes
Contents
<template> <Loading v-if="getConfigsTask.isRunning"></Loading> <ErrorMessage v-if="getConfigsTask.isError" :error="getConfigsTask.last?.error"></ErrorMessage> <Configs :configs="getConfigsTask.last.value" v-if="getConfigsTask.last?.value"></Configs> </template> <script lang="ts"> import { defineComponent, onMounted } from "vue" import { generateGetConfigsTask } from "@/api-helper" import Configs from "@/components/config/Configs.vue" import ErrorMessage from "@/components/ErrorMessage.vue" import Loading from "@/components/Loading.vue" export default defineComponent({ name: "ConfigsWrapper", components: { Configs, Loading, ErrorMessage }, setup() { const getConfigsTask = generateGetConfigsTask() onMounted(async () => { await getConfigsTask.perform() }) return { getConfigsTask } } }) </script>
Version data entries
14 entries across 14 versions & 1 rubygems