切换序列时影像显示bug修复
parent
6c9e471e75
commit
9cdc89f4df
|
@ -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) {
|
||||||
|
|
|
@ -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()
|
||||||
})
|
})
|
||||||
|
|
|
@ -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()
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue