You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
OneAuth/oaf/src/views/home.vue

34 lines
723 B
Vue

<template>
3 years ago
<div class="grid gap-4 grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 2xl:grid-cols-5 text-center">
<div class="flex items-center justify-center" v-for="(item, k) in apps" :key="k">
<AppCard :core="item"></AppCard>
</div>
<div class="flex items-center justify-center" v-for="(item) in '1234567890'" :key="item">
<AppCard :core="{}"></AppCard>
</div>
</div>
</template>
<script lang="ts" setup>
3 years ago
import {onMounted, ref} from "vue";
import api from "../api";
3 years ago
import AppCard from '../components/app.vue'
let apps = ref([])
function getApps() {
api.app.list().Start(e => {
apps.value = e
})
}
3 years ago
onMounted(() => {
getApps()
})
</script>
<style scoped>
</style>