update: 修改接口路径,弹窗搬运

This commit is contained in:
项富
2024-09-20 14:30:48 +08:00
parent b871eabb08
commit ed5810611f
12 changed files with 90 additions and 43 deletions
@@ -6,7 +6,7 @@
</template>
</public-title>
<div class="inner">
<div v-for="item in list" :key="item.label" class="health-item">
<div v-for="(item, index) in list" :key="index" class="health-item">
<span>{{ item.label }}</span>
<span>{{ item.value }}</span>
</div>
@@ -17,7 +17,7 @@
import { onMounted, ref } from 'vue';
import PublicTitle from '/@/components/publicTitle.vue';
import { caching, useSession } from '/@/hooks/autoRefresh/caching.ts';
import { getTeamHealthApi } from '/@/views/centralScreen/centralScreen.api.ts';
import { userHealthCenterNew } from '/@/views/centralScreen/centralScreen.api.ts';
const props = defineProps({
setting: Object,
@@ -68,7 +68,7 @@
async function viewDetail() {
try {
const { code, result } = await getTeamHealthApi({ dataType: props.setting?.dataType });
const { code, result } = await userHealthCenterNew({ dataType: props.setting?.dataType });
if (code != 200) {
return;
}