Selaa lähdekoodia

修改高亮的代码

Bay 6 vuotta sitten
vanhempi
commit
72ef757078
1 muutettua tiedostoa jossa 2 lisäystä ja 4 poistoa
  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: {