feat: 联调登录+对话
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
v-if="showTreatmentPage"
|
||||
:case-item="caseItem"
|
||||
@open-settings="emit('open-settings')"
|
||||
@open-profile="emit('open-profile')"
|
||||
@open-profile="openProfile"
|
||||
@go-home="emit('go-home')"
|
||||
/>
|
||||
<view v-else class="diagnosis-page">
|
||||
@@ -15,7 +15,7 @@
|
||||
<view class="home-icon"></view>
|
||||
</button>
|
||||
<view class="nav-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>
|
||||
@@ -134,6 +134,7 @@
|
||||
import { computed, onMounted, onUnmounted, reactive, ref } from 'vue'
|
||||
import type { ClinicalCase } from '../../api/cases'
|
||||
import { fetchDiagnosisContext, submitDiagnosis, type DiagnosisDraft } from '../../api/diagnosis'
|
||||
import { createProfileOpener } from '../../api/navigation'
|
||||
import TreatmentPage from '../treatment/treatment.vue'
|
||||
|
||||
const props = defineProps<{
|
||||
@@ -146,6 +147,8 @@ const emit = defineEmits<{
|
||||
(event: 'go-home'): void
|
||||
}>()
|
||||
|
||||
const openProfile = createProfileOpener(emit)
|
||||
|
||||
type SubmitState = 'idle' | 'submitted'
|
||||
|
||||
const form = reactive<DiagnosisDraft>({
|
||||
|
||||
Reference in New Issue
Block a user