firefish/packages/client/src/pages/welcome.vue

29 lines
591 B
Vue
Raw Normal View History

2023-07-20 04:17:05 +09:00
<template>
<div v-if="meta">
<XSetup v-if="meta.requireSetup" />
<XEntrance v-else />
</div>
</template>
<script lang="ts" setup>
2023-08-25 07:19:12 +09:00
import { computed, ref } from "vue";
2023-07-20 04:17:05 +09:00
import XSetup from "./welcome.setup.vue";
import XEntrance from "./welcome.entrance.a.vue";
import { instanceName } from "@/config";
import * as os from "@/os";
import { definePageMetadata } from "@/scripts/page-metadata";
2023-09-04 17:47:24 +09:00
const meta = ref(null);
2023-07-20 04:17:05 +09:00
os.api("meta", { detail: true }).then((res) => {
2023-08-25 07:19:12 +09:00
meta.value = res;
2023-07-20 04:17:05 +09:00
});
definePageMetadata(
computed(() => ({
title: instanceName,
icon: null,
})),
);
</script>