Browse Source

fix: 删除网站cookie

mjh 4 years ago
parent
commit
cd39de61dd
1 changed files with 5 additions and 1 deletions
  1. 5 1
      src/views/AuthPage/components/AuthCard.vue

+ 5 - 1
src/views/AuthPage/components/AuthCard.vue

@@ -356,7 +356,11 @@ export default {
                           this.$router.push("/portal");
                           this.$router.push("/portal");
                         }
                         }
                       } else {
                       } else {
-                        window.location.href = res.data.data.redirectUri + "?id_token=" + res.data.data.token;
+                        let p = new Promise(function (resolve, reject) {
+                          document.cookie = undefined;
+                        }).then(r => {
+                          window.location.href = res.data.data.redirectUri + "?id_token=" + res.data.data.token;
+                        });
                       }
                       }
                     }, 500);
                     }, 500);
                   } else {
                   } else {