1.修改部分问题(路线等问题)
2.添加定时器
This commit is contained in:
2025-07-08 17:32:13 +08:00
parent 67a2ea75d1
commit 726bd19ad3
11 changed files with 321 additions and 79 deletions
+28 -9
View File
@@ -42,20 +42,39 @@
</div>
</template>
<script setup lang="ts">
import { Vue3SeamlessScroll } from 'vue3-seamless-scroll';
import { Empty } from 'ant-design-vue';
import { ref, onMounted } from 'vue';
import { ref, onMounted, watch } from 'vue';
import { threeRApi } from '/@/views/indexSun/indexSun.api.ts';
const scrollList = ref();
const emit = defineEmits(['handleClick']);
onMounted(() => {
threeRApi({}).then((res) => {
if (res.code == 200) {
scrollList.value = res.result[0];
}
});
const props = defineProps({
bKey: {
type: Number,
default: () => 0,
},
});
function handleClickNum(type) {
watch(props, () => {
getList();
});
onMounted(() => {
getList();
});
function getList() {
threeRApi({})
.then((res: any) => {
if (res.code == 200) {
scrollList.value = res.result[0];
}
})
.catch((err: any) => {
console.log(err);
});
}
function handleClickNum(type: any) {
emit('handleClick', type);
}
</script>