| | |
| | | </div> |
| | | </template> |
| | | <script lang="ts" setup> |
| | | import { onMounted,ref } from 'vue' |
| | | import { onMounted,ref,computed,watch } from 'vue' |
| | | import { userInfoStore } from '@/stores/userInfo' |
| | | import { Image as VanImage,Tabbar as VanTabbar , TabbarItem as VanTabbarItem } from 'vant' |
| | | import {useRouter} from 'vue-router' |
| | |
| | | console.log('sss') |
| | | router.push(url) |
| | | } |
| | | const patientInfo=computed(() => { |
| | | return userInfo.patient |
| | | }) |
| | | watch( |
| | | ()=>patientInfo, |
| | | ()=>{ |
| | | console.log('患者变化了') |
| | | } |
| | | ) |
| | | onMounted(() => { |
| | | if (userInfo.info.openid===''){ |
| | | router.push('login') |