Sfoglia il codice sorgente

Merge remote-tracking branch 'origin/master'

solupro 5 anni fa
parent
commit
800793bca4

+ 1 - 1
_src/components/popup/packetSend/index.vue

@@ -21,7 +21,7 @@
                   <div class="cur-unit has-arrow">{{symbol}}</div>
                   <div class="code-menu">
                     <div :class="['code-item',{'disabled':loginType!='eos'}]" @click="changeSymbol('EOS')">EOS</div>
-                    <div :class="['code-item',{'disabled':loginType!='meetone'}]"  @click="changeSymbol('MEETONE')">MEETONE</div>
+                    <div :class="['code-item',{'disabled':loginType!='meetone'}]"  @click="changeSymbol('MEETONE')" v-if="loginType=='meetone'">MEETONE</div>
                     <!-- <div :class="['code-item',{'disabled':loginType!='eth'}]"  @click="changeSymbol('ETH')">ETH</div> -->
                     <div class="code-item" @click="changeSymbol(group.eosInfo.token)" v-if="group.eosInfo">{{group.eosInfo.token}}</div>
                   </div>

+ 0 - 1
_src/mixins/group.js

@@ -416,7 +416,6 @@ export const groupInviteMixins = {
           .then(({ data }) => {
             let groupId = data.data.session_id
             this.$showTips(this.$t('group.createSuccess'))
-            this.$store.commit('addSessionItem', data.data)
 
             if (this.ext && this.ext.tgGroupId) {
               // 同步tele

+ 4 - 0
_src/store/module/group/actions.js

@@ -92,6 +92,7 @@ const actions = {
    */
   async commonGetNewMsg (store, params = {}) {
     let { rootState, state } = store
+    let lastSession = rootState.curSession
     let msg
     // 然后再请求网上的数据,来渲染
     if (params.isPrivate) {
@@ -106,6 +107,9 @@ const actions = {
       }).catch(() => {})
     }
 
+    // 若请求回来数据不在当前会话,则弃掉
+    if (lastSession != rootState.curSession) return []
+
     if (msg && msg.data.code === 0 && msg.data.data.list.length > 0) {
       params.fromdb = false
 

File diff suppressed because it is too large
+ 0 - 0
dist/js/chunk-21bd4ca5.9868f75d.js


File diff suppressed because it is too large
+ 0 - 0
dist/js/chunk-4eaa1259.86cf3380.js


File diff suppressed because it is too large
+ 0 - 0
dist/js/chunk-5b86aac9.0b258c07.js


File diff suppressed because it is too large
+ 0 - 0
dist/js/chunk-650cd7d0.894102b9.js


File diff suppressed because it is too large
+ 0 - 0
dist/js/chunk-a6830cb4.45583045.js


File diff suppressed because it is too large
+ 0 - 0
dist/js/chunk-common.5d122578.js


File diff suppressed because it is too large
+ 0 - 0
dist/js/chunk-common.b014f402.js


File diff suppressed because it is too large
+ 0 - 0
dist/js/chunk-vendors.eae0cca2.js


File diff suppressed because it is too large
+ 0 - 0
dist/js/h5.1f1e2691.js


File diff suppressed because it is too large
+ 0 - 0
dist/js/mini.69d406c0.js


File diff suppressed because it is too large
+ 0 - 0
dist/js/mini.9ed160b4.js


File diff suppressed because it is too large
+ 0 - 0
dist/js/pc.045b9707.js


File diff suppressed because it is too large
+ 0 - 0
dist/js/pc.19b8bf6b.js


File diff suppressed because it is too large
+ 0 - 0
dist/sw.js


File diff suppressed because it is too large
+ 0 - 1
mini.html


File diff suppressed because it is too large
+ 1 - 1
protected/views/h5.html


File diff suppressed because it is too large
+ 1 - 1
protected/views/pc.html


Some files were not shown because too many files changed in this diff