|
@@ -28,14 +28,15 @@ export default defineComponent({
|
|
async created() {
|
|
async created() {
|
|
api.sysinfo().then((res: any) => {
|
|
api.sysinfo().then((res: any) => {
|
|
localStorage.setItem('sysinfo', JSON.stringify(res));
|
|
localStorage.setItem('sysinfo', JSON.stringify(res));
|
|
- // 使用的事base64加密的,解决之后的值 sysPasswordChangePeriod + "|" + isSecurityControlEnabled + "|" + isRsaEnabled
|
|
|
|
|
|
+ // 使用的事base64加密的,解决之后的值 sysPasswordChangePeriod + "|" + isSecurityControlEnabled + "|" + isRsaEnabled+ "|" + _tag+ "|" + isSSOEnabled
|
|
// 顺序是,密码变更周期,是否启动安全控制,是否启用rsa,中间你需要根据 | 切割一下
|
|
// 顺序是,密码变更周期,是否启动安全控制,是否启用rsa,中间你需要根据 | 切割一下
|
|
- const [sysPasswordChangePeriod, isSecurityControlEnabled, isRsaEnabled] = window.atob(res.target).split('|')
|
|
|
|
|
|
+ const [sysPasswordChangePeriod, isSecurityControlEnabled, isRsaEnabled, _tag, isSSOEnabled] = window.atob(res.target).split('|')
|
|
|
|
|
|
// 安全开关是否开启 按钮权限,列表权限,rsa权限在开启安全权限下才使用
|
|
// 安全开关是否开启 按钮权限,列表权限,rsa权限在开启安全权限下才使用
|
|
sessionStorage.setItem('isSecurityControlEnabled', Number(isSecurityControlEnabled) ? '1' : '');
|
|
sessionStorage.setItem('isSecurityControlEnabled', Number(isSecurityControlEnabled) ? '1' : '');
|
|
sessionStorage.setItem('isRsaEnabled', (Number(isSecurityControlEnabled) && Number(isRsaEnabled)) ? '1' : '');
|
|
sessionStorage.setItem('isRsaEnabled', (Number(isSecurityControlEnabled) && Number(isRsaEnabled)) ? '1' : '');
|
|
sessionStorage.setItem('sysPasswordChangePeriod', sysPasswordChangePeriod);
|
|
sessionStorage.setItem('sysPasswordChangePeriod', sysPasswordChangePeriod);
|
|
|
|
+ sessionStorage.setItem('isSSOEnabled', Number(isSSOEnabled) ? '1' : '');
|
|
});
|
|
});
|
|
},
|
|
},
|
|
setup() {
|
|
setup() {
|
|
@@ -43,7 +44,7 @@ export default defineComponent({
|
|
window.onresize = _.debounce(() => {
|
|
window.onresize = _.debounce(() => {
|
|
store.commit('global/setResize')
|
|
store.commit('global/setResize')
|
|
}, 200)
|
|
}, 200)
|
|
-
|
|
|
|
|
|
+
|
|
const { proxy } = <any>getCurrentInstance();
|
|
const { proxy } = <any>getCurrentInstance();
|
|
const setingsRef = ref();
|
|
const setingsRef = ref();
|
|
const route = useRoute();
|
|
const route = useRoute();
|