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
+22 -7
View File
@@ -31,20 +31,35 @@
<script setup lang="ts">
import { Vue3SeamlessScroll } from 'vue3-seamless-scroll';
import { Empty } from 'ant-design-vue';
import { onMounted, ref } from 'vue';
import { onMounted, ref, watch } from 'vue';
import hospitalPng from '/@/assets/indexSun/hospital.png';
import { threeLApi } from '/@/views/indexSun/indexSun.api.ts';
const scrollList = ref<any[]>([]);
const props = defineProps({
bKey: {
type: Number,
default: () => 0,
},
});
onMounted(() => {
getList();
});
watch(props, () => {
getList();
});
function getList() {
threeLApi({}).then((res) => {
if (res.code == 200) {
console.log(res.result);
scrollList.value = res.result;
}
});
threeLApi({})
.then((res: any) => {
if (res.code == 200) {
console.log(res.result);
scrollList.value = res.result;
}
})
.catch((err) => {
console.log(err);
});
}
</script>
<style lang="less" scoped>