|
@@ -77,7 +77,8 @@ import MessageSever from "../components/messagesever/index";
|
|
|
import changePass from "../components/changepass/index";
|
|
|
import lStorage from "@/utils/localStorage";
|
|
|
import Bus from "@/utils/bus.js";
|
|
|
-import store from '@/store';
|
|
|
+import store from "@/store";
|
|
|
+import storage from "@/framework/utils/storage";
|
|
|
|
|
|
export default {
|
|
|
name: "PageHeader",
|
|
@@ -181,9 +182,28 @@ export default {
|
|
|
* 改为本地退出
|
|
|
*/
|
|
|
store.commit("setSsoToken", null);
|
|
|
- lStorage.remove("");
|
|
|
lStorage.remove("ssoToken");
|
|
|
+
|
|
|
+ store.commit("layout/setprojectId", null);
|
|
|
+ lStorage.remove("projectId");
|
|
|
+
|
|
|
store.commit("layout/setUserInfo", null);
|
|
|
+ storage.remove("user_name");
|
|
|
+
|
|
|
+ store.commit("layout/setGroupCode", null);
|
|
|
+ lStorage.remove("group_code");
|
|
|
+
|
|
|
+ // store.state.layout.projectId = null;
|
|
|
+ // lStorage.remove("projectId");
|
|
|
+
|
|
|
+ // store.state.layout.userInfo = null;
|
|
|
+ // storage.remove("user_name");
|
|
|
+
|
|
|
+ // store.state.layout.group_code = null;
|
|
|
+ // lStorage.remove("group_code");
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
store.commit("layout/setUserId", "");
|
|
|
this.$router.replace({ path: "/login" });
|
|
|
} else if (cmd == "changePass") {
|