diff --git a/src/assets/icons/logout.svg b/src/assets/icons/logout.svg new file mode 100644 index 0000000..2e3a808 --- /dev/null +++ b/src/assets/icons/logout.svg @@ -0,0 +1 @@ + diff --git a/src/assets/icons/shouye.svg b/src/assets/icons/shouye.svg new file mode 100644 index 0000000..f685b5d --- /dev/null +++ b/src/assets/icons/shouye.svg @@ -0,0 +1 @@ + diff --git a/src/components/layout.vue b/src/components/layout.vue index a7a1261..93f0dc8 100644 --- a/src/components/layout.vue +++ b/src/components/layout.vue @@ -4,6 +4,7 @@ import { LayoutData } from "@/types/Basics"; import { useRoute, useRouter } from "vue-router"; import { Message } from "view-ui-plus"; import useCurrentInstance from "@/utils/hook/useCurrentInstance"; +import SvgIcon from "@/components/SvgIcon.vue"; let props = defineProps<{ layoutData: LayoutData }>(); const reload: Function = inject("reload") || new Function("console.error('empty')"); @@ -141,7 +142,7 @@ const linkUserInfo = () => { }; const logout = () => { let url = window.location.href; - url = "/cas/logout?service=" + url; + url = "/logout?service=" + url; window.location.href = ssoHost + url; }; const childChange = (index: number) => { @@ -155,7 +156,8 @@ function linkHomePage() { if (!bschUtil.getIsSelf()) { bschUtil.goBackDesktop(); } else { - window.location.href = baseHost + "/BschHome/front/index.html"; + // 旧 BschHome 已下线(线上 404),首页统一指向用户中心 userhome + window.location.href = baseHost + "/userhome/front/index.html"; } } @@ -164,8 +166,8 @@ function linkHomePage() {