Эх сурвалжийг харах

解决修改密码成功后强制退出登录

sunjuan 2 жил өмнө
parent
commit
485d8335b7

+ 6 - 0
chuanyi_client2/src/components/HeaderPersonal/index.vue

@@ -217,6 +217,12 @@ export default {
                 message: '密码修改成功!',
                 type: 'success'
               })
+              this.$store.dispatch('user/Logout').then(() => {
+                // location.href = '/index';
+                this.$router.push({path: '/', query: {}})
+                window.location.reload()
+              }).catch(() => {
+              })
               this.dialogClose()
             }).catch((e) => {
               loading.close()