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