OSDN Git Service

fix:qrcode bug
authorxuhongxin <xuhongxin@luojilab.com>
Thu, 18 Oct 2018 14:39:16 +0000 (22:39 +0800)
committerxuhongxin <xuhongxin@luojilab.com>
Thu, 18 Oct 2018 14:39:16 +0000 (22:39 +0800)
src/popup/home/components/qrcode.vue
src/popup/home/main.vue

index 63d00c6..e617618 100644 (file)
@@ -46,7 +46,7 @@ export default {
 
       // 使用 API
       this.qrcode.clear();
-      this.qrcode.makeCode("new content");
+      this.qrcode.makeCode(address);
     },
     close: function() {
       this.show = false;
index 7bf025b..097814a 100644 (file)
     <section class="transactions">
       <h3 class="color-gray">交易记录</h3>
       <ul class="list">
-        <li class="list-item" v-for="(transcation, index) in latestTranscations" v-if="index < 4">
+        <li class="list-item" v-for="(transcation, index) in latestTranscations" v-if="index < 4" :key="index">
             <div>
               <div class="time">{{transcation.timestamp | moment}}</div>
               <div class="addr">{{transcation.address}}</div>