33 lines
778 B
Vue
33 lines
778 B
Vue
<route-meta>
|
|
{
|
|
"isLogin": false,
|
|
"title": "用户中心首页"
|
|
}
|
|
</route-meta>
|
|
<template lang="pug">
|
|
.user-info
|
|
h1 {{ title }}
|
|
</template>
|
|
|
|
<script lang="ts">
|
|
import { toRefs, Ref, ref, reactive, createComponent, PropOptions, onMounted, SetupContext } from '@vue/composition-api'
|
|
import { UnwrapRef } from '@vue/composition-api/dist/reactivity'
|
|
|
|
export default createComponent({
|
|
props: {},
|
|
setup(props: PropOptions, ctx: SetupContext) {
|
|
const state: UnwrapRef<{
|
|
title: Ref<string>
|
|
}> = reactive({
|
|
title: ref('用户index页面')
|
|
})
|
|
|
|
return {
|
|
...toRefs(state)
|
|
}
|
|
}
|
|
})
|
|
</script>
|
|
|
|
<style lang="less" scoped>
|
|
</style> |