瀏覽代碼

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