update
1.修改部分问题(路线等问题) 2.添加定时器
This commit is contained in:
@@ -126,14 +126,26 @@
|
||||
import WeightPng from '/@/assets/indexSun/weightClock.png';
|
||||
import FatPng from '/@/assets/indexSun/fatClock.png';
|
||||
import BloodPng from '/@/assets/indexSun/bloodClock.png';
|
||||
import { onMounted, ref } from 'vue';
|
||||
import { onMounted, ref, watch } from 'vue';
|
||||
import { twoRApi } from '/@/views/indexSun/indexSun.api.ts';
|
||||
const twoRList = ref();
|
||||
const emit = defineEmits(['handleClick']);
|
||||
|
||||
const props = defineProps({
|
||||
bKey: {
|
||||
type: Number,
|
||||
default: () => 0,
|
||||
},
|
||||
});
|
||||
|
||||
onMounted(() => {
|
||||
getList();
|
||||
});
|
||||
|
||||
watch(props, () => {
|
||||
getList();
|
||||
});
|
||||
|
||||
function getList() {
|
||||
twoRApi({}).then((res) => {
|
||||
if (res.code == 200) {
|
||||
|
||||
Reference in New Issue
Block a user