首页瀑布流
This commit is contained in:
@@ -99,7 +99,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
import { defineProps, reactive } from 'vue'
|
import { defineProps, reactive,watchEffect } from 'vue'
|
||||||
import store from '../../store/index';
|
import store from '../../store/index';
|
||||||
import { useRouter } from 'vue-router'
|
import { useRouter } from 'vue-router'
|
||||||
const props = defineProps({
|
const props = defineProps({
|
||||||
@@ -134,6 +134,9 @@ let watchAdv = () => {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
watchEffect(()=>{
|
||||||
|
itemData = props.data
|
||||||
|
})
|
||||||
</script>
|
</script>
|
||||||
<style scoped>
|
<style scoped>
|
||||||
.pos-r {
|
.pos-r {
|
||||||
|
|||||||
@@ -256,9 +256,14 @@ let getRecommendList = () => {
|
|||||||
loadText.value = '到底了'
|
loadText.value = '到底了'
|
||||||
}
|
}
|
||||||
nextTick(() => {
|
nextTick(() => {
|
||||||
console.log(listMasonryInstance)
|
console.log(1)
|
||||||
|
listMasonryInstance.reloadItems();
|
||||||
|
listMasonryInstance.layout();
|
||||||
|
setTimeout(() => {
|
||||||
|
console.log(3)
|
||||||
listMasonryInstance.reloadItems();
|
listMasonryInstance.reloadItems();
|
||||||
listMasonryInstance.layout();
|
listMasonryInstance.layout();
|
||||||
|
}, 600)
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
ElMessage({
|
ElMessage({
|
||||||
|
|||||||
Reference in New Issue
Block a user