first commit
This commit is contained in:
33
tsvue/src/application/page/user/index.vue
Normal file
33
tsvue/src/application/page/user/index.vue
Normal file
@@ -0,0 +1,33 @@
|
||||
<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>
|
||||
Reference in New Issue
Block a user