Преглед на файлове

feat(simulator): support sn staging

Casper Dai преди 3 години
родител
ревизия
07a0f39806
променени са 1 файла, в които са добавени 2 реда и са изтрити 1 реда
  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