update: 修改接口路径,弹窗搬运
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user