|  |  | 
 |  |  | <template> | 
 |  |  |   <div class="mine-page-top-view"> | 
 |  |  |     <slot name="avatar"></slot> | 
 |  |  |     <div class="setting-wrapper" v-if="showUserHomePageBtn" @click=""> | 
 |  |  |     <div class="setting-wrapper" v-if="showUserHomePageBtn" @click="goMineCurriculumVitae"> | 
 |  |  |       <div class="setting-text"> | 
 |  |  |         我的简历<IconFont name="rect-right" size="16" color="#6D6E6E"></IconFont> | 
 |  |  |       </div> | 
 |  |  | 
 |  |  | <script setup lang="ts"> | 
 |  |  | import { useUser } from '@/hooks'; | 
 |  |  | import Taro from '@tarojs/taro'; | 
 |  |  | import { RouterPath } from '@/constants'; | 
 |  |  |  | 
 |  |  | defineOptions({ | 
 |  |  |   name: 'UserHomeTopView', | 
 |  |  | 
 |  |  | }); | 
 |  |  |  | 
 |  |  | const { userDetail } = useUser(); | 
 |  |  |  | 
 |  |  | function goMineCurriculumVitae() { | 
 |  |  |   Taro.navigateTo({ | 
 |  |  |     url: RouterPath.mineCurriculumVitae, | 
 |  |  |   }); | 
 |  |  | } | 
 |  |  | </script> | 
 |  |  |  | 
 |  |  | <style lang="scss"> |