From 93898e03a97c15794cca9e22db4aec4d38f4c516 Mon Sep 17 00:00:00 2001 From: huxuejian Date: Tue, 10 Feb 2026 16:44:01 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E9=97=AE=E9=A2=98=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/health/list.vue | 6 +++++- pages/home/home.vue | 8 +++++++- pages/message/message.vue | 4 ++-- 3 files changed, 14 insertions(+), 4 deletions(-) diff --git a/pages/health/list.vue b/pages/health/list.vue index 6fa8c03..fdebfd3 100644 --- a/pages/health/list.vue +++ b/pages/health/list.vue @@ -137,7 +137,11 @@ function addArchive() { function getTempRows(type, data) { if (config[type] && tempShowField.value && tempShowField.value[type]) { const list = []; - config[type].forEach(i => { + let titles = config[type]; + if (data.corp === '其他') { + titles = ['corpName', 'diagnosisName', 'files'] + } + titles.forEach(i => { if (tempShowField.value[type][i]) { list.push({ title: i, label: tempShowField.value[type][i], value: data[i], key: `${i}_${data._id}` }) } diff --git a/pages/home/home.vue b/pages/home/home.vue index 772b938..a4fa04d 100644 --- a/pages/home/home.vue +++ b/pages/home/home.vue @@ -40,6 +40,7 @@ import pageLoading from "./loading.vue"; // const { useLoad, useShow } = useGuard(); const { account } = storeToRefs(useAccount()); +const { login } = useAccount(); const team = ref(null); const teams = ref([]); @@ -90,7 +91,12 @@ async function getTeams() { // } // }); -onShow(() => { +onLoad(() => { + if (!account.value) login(); +}) + +onShow(async () => { + if (!account.value) await login(); if (account.value && account.value.openid) { getTeams(); } else { diff --git a/pages/message/message.vue b/pages/message/message.vue index 24d6587..2614963 100644 --- a/pages/message/message.vue +++ b/pages/message/message.vue @@ -1,9 +1,9 @@