Browse Source

toObj容错

龚成明 3 năm trước cách đây
mục cha
commit
6ba1a7a660
1 tập tin đã thay đổi với 6 bổ sung0 xóa
  1. 6 0
      src/components/History.vue

+ 6 - 0
src/components/History.vue

@@ -292,6 +292,12 @@
             one.state = jsonData.status
             one.pending = jsonData.pending
             one.jsonData = jsonData
+
+            try {
+              one.toObj.dataObj = JSON.parse(one.toObj.data)
+            } catch (e) {
+              one.toObj = undefined
+            }
           } catch (e) {
             one.tradeInfo = []
           }