Parcourir la source

修改高亮的代码

Bay il y a 6 ans
Parent
commit
72ef757078
1 fichiers modifiés avec 2 ajouts et 4 suppressions
  1. 2 4
      src/views/JVVM.vue

+ 2 - 4
src/views/JVVM.vue

@@ -86,13 +86,11 @@ export default {
         optionalNextFrame.code &&
         optionalNextFrame.code.length > 0
       ) {
-        const code = optionalNextFrame.code
-        this.currentJVMCode = code
-        this.nextActiveCode = code[0]
+        this.currentJVMCode = optionalNextFrame.code
       } else if (currentFrame && currentFrame.code) {
         this.currentJVMCode = currentFrame.code
-        this.nextActiveCode = nextInstruction
       }
+      this.nextActiveCode = nextInstruction
     }
   },
   methods: {