Bladeren bron

build:new

baichun 5 jaren geleden
bovenliggende
commit
5f4ac8b73f

+ 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.c59d6dbf.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.0cd6d718.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.19b8bf6b.js


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


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


File diff suppressed because it is too large
+ 0 - 0
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