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