feat: 联调登录+对话
This commit is contained in:
+5
-2
@@ -2,7 +2,7 @@
|
||||
<MatchingPage
|
||||
v-if="showMatchingPage"
|
||||
@open-settings="emit('open-settings')"
|
||||
@open-profile="emit('open-profile')"
|
||||
@open-profile="openProfile"
|
||||
@go-home="showMatchingPage = false"
|
||||
/>
|
||||
<view v-else class="home-page">
|
||||
@@ -12,7 +12,7 @@
|
||||
<view class="settings-icon"></view>
|
||||
</button>
|
||||
<view class="top-spacer"></view>
|
||||
<button class="icon-button" aria-label="个人中心" @click="emit('open-profile')">
|
||||
<button class="icon-button" aria-label="个人中心" @click="openProfile">
|
||||
<view class="account-icon"></view>
|
||||
</button>
|
||||
</view>
|
||||
@@ -49,6 +49,7 @@
|
||||
<script setup lang="ts">
|
||||
import { onMounted, onUnmounted, reactive, ref } from 'vue'
|
||||
import { fetchHomeSummary, startTrainingSession, type HomeSummary } from '../../api/home'
|
||||
import { createProfileOpener } from '../../api/navigation'
|
||||
import MatchingPage from '../matching/matching.vue'
|
||||
|
||||
const emit = defineEmits<{
|
||||
@@ -56,6 +57,8 @@ const emit = defineEmits<{
|
||||
(event: 'open-profile'): void
|
||||
}>()
|
||||
|
||||
const openProfile = createProfileOpener(emit)
|
||||
|
||||
const summary = reactive<HomeSummary>({
|
||||
greeting: '下午好,医生。',
|
||||
highlight: '让我们继续提升您的临床思维能力吧。',
|
||||
|
||||
Reference in New Issue
Block a user