23 lines
526 B
Vue
Executable file
23 lines
526 B
Vue
Executable file
<script setup>
|
|
import { ref, onMounted } from 'vue'
|
|
import TitleHeader from './components/TitleHeader.vue'
|
|
import defaults from './assets/defaults.json'
|
|
|
|
onMounted(async () => {
|
|
const res = await fetch('assets/config.json')
|
|
const userConfig = await res.json()
|
|
|
|
config.value = {...defaults, ...userConfig}
|
|
})
|
|
|
|
const config = ref({})
|
|
</script>
|
|
|
|
<template>
|
|
<TitleHeader :title="config.title" :catchphrase="config.catchphrase" :subtitle="config.subtitle"></TitleHeader>
|
|
</template>
|
|
|
|
<style scoped lang="scss">
|
|
|
|
</style>
|