From 536d8e3da6cc11d7467c9f6f7a3cd70f19ae7919 Mon Sep 17 00:00:00 2001
From: Your Name <123456>
Date: 星期三, 11 五月 2022 16:25:23 +0800
Subject: [PATCH] lct

---
 src/views/contractor/userManage/index.vue |   13 +++++++++----
 1 files changed, 9 insertions(+), 4 deletions(-)

diff --git a/src/views/contractor/userManage/index.vue b/src/views/contractor/userManage/index.vue
index 0520578..a710a11 100644
--- a/src/views/contractor/userManage/index.vue
+++ b/src/views/contractor/userManage/index.vue
@@ -796,8 +796,13 @@
                         _this.pageTotal = computePageCount(result.totalCount, result.pageSize)
                         _this.currentPage = result.pageIndex
                         _this.userData = result.result
+                    }else if(res.code === '100'){
+                            this.$store.dispatch('LogOut').then(() => {
+                            location.reload()// In order to re-instantiate the vue-router object to avoid bugs
+                            parseError({ error: res.message, vm: _this })
+                        })
                     } else {
-                        parseError({ error: res.data.message, vm: _this })
+                        parseError({ error: res.message, vm: _this })
                     }
                     _this.listLoading = false
                 }).catch(error => {
@@ -830,7 +835,7 @@
                                 })
                                 _this.getUserList()
                             } else {
-                                parseError({ error: res.data.message, vm: _this })
+                                parseError({ error: res.message, vm: _this })
                             }
                         }).catch(error => {
                             parseError({ error: error, vm: _this })
@@ -866,7 +871,7 @@
                         })
                         _this.getUserList()
                     } else {
-                        parseError({ error: res.data.message, vm: _this })
+                        parseError({ error: res.message, vm: _this })
                     }
                 }).catch(error => {
                     parseError({ error: error, vm: _this })
@@ -954,7 +959,7 @@
                                 })
                                 _this.getUserList()
                             } else {
-                                parseError({ error: res.data.message, vm: _this })
+                                parseError({ error: res.message, vm: _this })
                             }
                         }).catch(error => {
                             parseError({ error: error, vm: _this })

--
Gitblit v1.9.2