From cfce577132832b5291c5bd3b171d7f4397d44643 Mon Sep 17 00:00:00 2001
From: 819527061@qq.com <123456>
Date: 星期二, 14 五月 2024 17:06:53 +0800
Subject: [PATCH] docs:参数加密

---
 src/views/main-components/user.vue |   13 +++++++------
 1 files changed, 7 insertions(+), 6 deletions(-)

diff --git a/src/views/main-components/user.vue b/src/views/main-components/user.vue
index 2565a19..a37dc1d 100644
--- a/src/views/main-components/user.vue
+++ b/src/views/main-components/user.vue
@@ -36,6 +36,7 @@
 import { getOtherSet } from "@/api/index";
 import util from "@/libs/util.js";
 import changePass from "@/views/change-pass/change-pass";
+import {getSessionStore} from "../../libs/storage";
 export default {
   name: "user",
   components: {
@@ -106,13 +107,13 @@
           this.$store.commit("setLoading", false);
           if (res.result) {
             let domain = res.result.ssoDomain;
-            Cookies.set("accessToken", "", {
-              domain: domain,
-              expires: 7,
-            });
+            // Cookies.set("accessToken", "", {
+            //   domain: domain,
+            //   expires: 7,
+            // });
           }
           this.$store.commit("logout", this);
-          this.setStore("accessToken", "");
+          this.setSessionStore("accessToken", "")
           // 寮哄埗鍒锋柊椤甸潰 閲嶆柊鍔犺浇router
           location.reload();
         });
@@ -126,4 +127,4 @@
 </script>
 
 <style lang="less" scoped>
-</style>
\ No newline at end of file
+</style>

--
Gitblit v1.9.1