22 lines
359 B
Vue
22 lines
359 B
Vue
<template>
|
|
<div class="home">
|
|
<h2>{{ title }}</h2>
|
|
</div>
|
|
</template>
|
|
|
|
<script lang="ts">
|
|
import { onMounted, toRefs, reactive, computed } from '@vue/composition-api'
|
|
|
|
export default {
|
|
setup(props: any) {
|
|
const state = reactive({
|
|
title: '关于我'
|
|
});
|
|
|
|
return {
|
|
...toRefs(state)
|
|
}
|
|
}
|
|
}
|
|
</script>
|