切换序列时影像显示bug修复

uat_us
caiyiling 2024-06-05 09:53:31 +08:00
parent 6c9e471e75
commit 9cdc89f4df
3 changed files with 9 additions and 3 deletions

View File

@ -215,7 +215,9 @@ export default {
cornerstone.loadAndCacheImage(this.stack.imageIds[this.stack.currentImageIdIndex]) cornerstone.loadAndCacheImage(this.stack.imageIds[this.stack.currentImageIdIndex])
.then(image => { .then(image => {
this.loading = false this.loading = false
if (this.stack.imageIds.indexOf(image.imageId) !== -1) {
this.onFirstImageLoaded(image) this.onFirstImageLoaded(image)
}
}).catch((error) => { }).catch((error) => {
this.loading = false this.loading = false
if (error.error && error.error.message) { if (error.error && error.error.message) {

View File

@ -1113,7 +1113,9 @@ export default {
this.loading = true this.loading = true
cornerstone.loadAndCacheImage(this.stack.imageIds[this.stack.currentImageIdIndex]) cornerstone.loadAndCacheImage(this.stack.imageIds[this.stack.currentImageIdIndex])
.then(async image => { .then(async image => {
if (this.stack.imageIds.indexOf(image.imageId) !== -1) {
await scope.onFirstImageLoaded(image) await scope.onFirstImageLoaded(image)
}
scope.loading = false scope.loading = false
resolve() resolve()
}) })

View File

@ -1088,7 +1088,9 @@ export default {
this.loading = true this.loading = true
cornerstone.loadAndCacheImage(this.stack.imageIds[this.stack.currentImageIdIndex]) cornerstone.loadAndCacheImage(this.stack.imageIds[this.stack.currentImageIdIndex])
.then(async image => { .then(async image => {
if (this.stack.imageIds.indexOf(image.imageId) !== -1) {
await scope.onFirstImageLoaded(image) await scope.onFirstImageLoaded(image)
}
scope.loading = false scope.loading = false
resolve() resolve()
}) })