Pārlūkot izejas kodu

feat(simulator): support sn staging

Casper Dai 3 gadi atpakaļ
vecāks
revīzija
07a0f39806
1 mainītis faili ar 2 papildinājumiem un 1 dzēšanām
  1. 2 1
      src/views/realm/debug/simulator/index.vue

+ 2 - 1
src/views/realm/debug/simulator/index.vue

@@ -66,7 +66,7 @@ export default {
   name: 'Simulate',
   data () {
     return {
-      sn: '',
+      sn: window.sessionStorage.getItem('isoc_simulator_device') || '',
       valid: false,
       loading: false,
       messages: []
@@ -85,6 +85,7 @@ export default {
       this.$proxyPromise = createProxy(this.sn, this.onMessage, this.onClose)
       this.$proxyPromise.then(
         val => {
+          window.sessionStorage.setItem('isoc_simulator_device', this.sn)
           this.$proxyPromise = null
           this.$proxy = val
           this.valid = true