update
1.修改部分问题(路线等问题) 2.添加定时器
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user