diff --git a/src/components/core/d2-container/index.vue b/src/components/core/d2-container/index.vue index 46ebf47c..a42704dc 100644 --- a/src/components/core/d2-container/index.vue +++ b/src/components/core/d2-container/index.vue @@ -65,7 +65,9 @@ export default { } }, mounted () { - this.scrollInit() + if (this.type === 'card' || this.type === 'ghost') { + this.scrollInit() + } }, beforeDestroy () { this.scrollDestroy()