---fix bug

This commit is contained in:
yuping
2023-07-28 18:41:55 +08:00
parent 7aab20177b
commit f6e77b740c
4 changed files with 6 additions and 5 deletions

View File

@@ -49,8 +49,8 @@ import {computed, reactive} from "vue";
import {studentUrl,teacherUrl} from "@/api/method";
import router from "@/router";
import {useStore, createStore} from "vuex";
import {LOGOUT} from "@/api/apis";
import {request} from "@/api/request";
import {boeRequest, request} from "@/api/request";
import {LOGOUT} from "@/api/ThirdApi";
const store = useStore();
@@ -86,7 +86,7 @@ const changeRole = (value) => {
});
};
const logOut = async () => {
await request(LOGOUT)
await boeRequest(LOGOUT,{from:'pc'})
store.replaceState(createStore({state: {openpages: []}}).state);
localStorage.clear();
sessionStorage.clear();