fix: 问题修复
This commit is contained in:
parent
4d7de97445
commit
93898e03a9
@ -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}` })
|
||||
}
|
||||
|
||||
@ -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 {
|
||||
|
||||
@ -1,9 +1,9 @@
|
||||
<template>
|
||||
<view class="message-page">
|
||||
<!-- 标题栏 -->
|
||||
<view class="message-header">
|
||||
<!-- <view class="message-header">
|
||||
<text class="header-title">咨询</text>
|
||||
</view>
|
||||
</view> -->
|
||||
|
||||
<!-- 消息列表 -->
|
||||
<scroll-view
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user