Compare commits

...

2 Commits

Author SHA1 Message Date
caiyiling c2b9dcd277 Merge branch 'main' of https://gitea.frp.extimaging.com/XCKJ/irc_web into main
continuous-integration/drone/push Build is passing Details
2024-06-05 09:54:02 +08:00
caiyiling 9cdc89f4df 切换序列时影像显示bug修复 2024-06-05 09:53:31 +08:00
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])
.then(image => {
this.loading = false
this.onFirstImageLoaded(image)
if (this.stack.imageIds.indexOf(image.imageId) !== -1) {
this.onFirstImageLoaded(image)
}
}).catch((error) => {
this.loading = false
if (error.error && error.error.message) {

View File

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

View File

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