---登出bug

This commit is contained in:
yuping
2022-12-28 21:34:13 +08:00
parent f4b528e45f
commit f089aeb639
3 changed files with 5 additions and 2 deletions

View File

@@ -62,6 +62,7 @@ import { reactive, toRefs } from "vue";
import DownLoad from "../components/drawers/DownLoad";
import * as api from "../api/index1";
import { studentUrl } from "../api/method";
import router from "@/router";
export default {
name: "NavTop",
components: {
@@ -137,7 +138,7 @@ export default {
localStorage.removeItem("projectId");
localStorage.removeItem("projectTemplateId");
localStorage.removeItem("orgtreeList");
window.open("https://u-pre.boe.com/web/", "_self");
process.env.NODE_ENV === 'development' ? router.push({path: 'login'}) : (window.location.href = process.env.VUE_APP_LOGIN_URL)
};
return {
...toRefs(state),