|
|
@@ -91,6 +91,7 @@ export default {
|
|
|
this.currentJVMCode = currentFrame.code
|
|
|
}
|
|
|
this.nextActiveCode = nextInstruction
|
|
|
+ this.showTopStack()
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
@@ -101,9 +102,16 @@ export default {
|
|
|
toggleSourceCode() {
|
|
|
this.showSource = !this.showSource
|
|
|
},
|
|
|
+ showTopStack() {
|
|
|
+ const stackData = this.state.thread ? this.state.thread.threadStack : []
|
|
|
+ if (stackData.length > 0) {
|
|
|
+ this.handleCheckDetail(stackData[stackData.length - 1], 'j-thread-detail')
|
|
|
+ } else {
|
|
|
+ this.handleCheckDetail(null, 'div')
|
|
|
+ }
|
|
|
+ },
|
|
|
goNextFrame () {
|
|
|
- this.detail = null
|
|
|
- this.detailComponent = 'div'
|
|
|
+ this.showTopStack()
|
|
|
this.$emit('onNextFrame')
|
|
|
},
|
|
|
goPreFrame () {
|