Former-commit-id: be2ca061ff5aa476a589f08c038c7f0dccc58151 [formerly be2ca061ff5aa476a589f08c038c7f0dccc58151 [formerly be2ca061ff5aa476a589f08c038c7f0dccc58151 [formerly be2ca061ff5aa476a589f08c038c7f0dccc58151 [formerly bd874a049d98462b8723d202f26d6262771b8271 [formerly c08d7c84f79eee0e93d34d4b84b88c403d8b112e]]]]]
Former-commit-id: ddaf890553901b390016f01ff3ad2295f847b30c
Former-commit-id: d17c6bc612471555f5ace80e1a5f189b5d13f0e4
Former-commit-id: b2b28f6f7fb2be0ea576c965c99feae0cdcdec42 [formerly 847bf717999321ca85663d7b9e0dc46b0cd39040]
Former-commit-id: ca307155a6394b42e0d9bee8f021c797a4e0e891
Former-commit-id: 329e8b2dc1e1ac862f9fa1b70b1aed7c39219c3e
Former-commit-id: 7ebf12fa40704fc6f2418e766ecafc2e804c1e4c
Former-commit-id: f74bf45db03ed8a1ebe4009c5db4ca606979f17f
Former-commit-id: 59f8a783cde7f5ff28ceedf970055d5a5119f8ae
This commit is contained in:
liyang 2018-08-12 23:27:41 +08:00
parent f561957240
commit 5754f9cc02
2 changed files with 10 additions and 2 deletions

View File

@ -29,8 +29,12 @@ export default {
}, this.betterScrollOptions))
},
scrollDestroy () {
if (this.BS) {
// https://github.com/d2-projects/d2-admin/issues/75
try {
this.BS.destroy()
} catch (e) {
delete this.BS
this.BS = null
}
}
}

View File

@ -85,8 +85,12 @@ export default {
})
},
scrollDestroy () {
if (this.BS) {
// https://github.com/d2-projects/d2-admin/issues/75
try {
this.BS.destroy()
} catch (e) {
delete this.BS
this.BS = null
}
}
}