ah_jjzhgd_app/src/pages/page/page.vue

37 lines
725 B
Vue
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<template>
<div>
<div class="my-info">
<p>{{ deptName }}</p>
<p>用户名{{ roleName }}</p>
</div>
</div>
</template>
<script lang="ts" setup>
import { ref } from "vue";
import { useInfoStore } from "@/stores";
import { onShow, onHide } from '@dcloudio/uni-app'
let roleName = ref()
let deptName = ref()
onShow(() => {
const userStore = useInfoStore()
roleName.value = userStore.userinfo?.userInfo.roleName;
deptName.value = userStore.userinfo?.userInfo.deptName;
})
onHide(() => {
})
</script>
<style lang="scss" scoped>
.my-info {
display: flex;
flex-direction: column;
padding: 30px;
min-height: 83vh;
p {
border-bottom: 1px solid #ccc;
padding: 10px 0;
}
}
</style>