feat:权限管理-登出,前台打印登出的原因(提示用户因权限修改而登出),由于跳转login page 的原因,http的弹框会被跳转移除,所有利用session传到login page 抓出来弹框出效果
This commit is contained in:
@ -42,9 +42,20 @@
|
||||
import logopng from '/@/assets/images/logo-dark.png';
|
||||
import logobg from '/@/assets/images/login-left.gif';
|
||||
import { getLogoInfo } from '/@/api/system/login';
|
||||
import { ref } from 'vue';
|
||||
import { ref, onMounted } from 'vue';
|
||||
import { LogoConfig } from '/#/config';
|
||||
|
||||
import { useMessage } from '/@/hooks/web/useMessage';
|
||||
const { createErrorModal } = useMessage();
|
||||
|
||||
onMounted(() => {
|
||||
let logoutInfoData = JSON.parse(sessionStorage.getItem('logoutInfoData') as string);
|
||||
if (logoutInfoData) {
|
||||
createErrorModal({ title: t('错误提示'), content: logoutInfoData.logoutMessage });
|
||||
sessionStorage.removeItem('logoutInfoData');
|
||||
}
|
||||
})
|
||||
|
||||
const appStore = useAppStore();
|
||||
defineProps({
|
||||
sessionTimeout: {
|
||||
|
||||
Reference in New Issue
Block a user