mirror of https://github.com/jeecgboot/jeecg-boot
【issues/7250】自动锁屏无法解锁
parent
2af9451b7f
commit
9fd20fde9e
|
@ -1,7 +1,7 @@
|
||||||
<template>
|
<template>
|
||||||
<div :class="prefixCls">
|
<div :class="prefixCls">
|
||||||
<span> {{ title }}</span>
|
<span> {{ title }}</span>
|
||||||
<InputNumber v-bind="$attrs" size="small" :class="`${prefixCls}-input-number`" @change="handleChange" />
|
<InputNumber :max="7200" v-bind="$attrs" size="small" :class="`${prefixCls}-input-number`" @change="handleChange" />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
|
|
|
@ -21,6 +21,8 @@ import {
|
||||||
import { DEFAULT_CACHE_TIME } from '/@/settings/encryptionSetting';
|
import { DEFAULT_CACHE_TIME } from '/@/settings/encryptionSetting';
|
||||||
import { toRaw } from 'vue';
|
import { toRaw } from 'vue';
|
||||||
import { pick, omit } from 'lodash-es';
|
import { pick, omit } from 'lodash-es';
|
||||||
|
import { PageEnum } from '/@/enums/pageEnum';
|
||||||
|
import { router } from '/@/router';
|
||||||
|
|
||||||
interface BasicStore {
|
interface BasicStore {
|
||||||
[TOKEN_KEY]: string | number | null | undefined;
|
[TOKEN_KEY]: string | number | null | undefined;
|
||||||
|
@ -60,9 +62,11 @@ export class Persistent {
|
||||||
static getLocal<T>(key: LocalKeys) {
|
static getLocal<T>(key: LocalKeys) {
|
||||||
//update-begin---author:scott ---date:2022-10-27 for:token过期退出重新登录,online菜单还是提示token过期----------
|
//update-begin---author:scott ---date:2022-10-27 for:token过期退出重新登录,online菜单还是提示token过期----------
|
||||||
const globalCache = ls.get(APP_LOCAL_CACHE_KEY);
|
const globalCache = ls.get(APP_LOCAL_CACHE_KEY);
|
||||||
if(globalCache){
|
// update-begin--author:liaozhiyang---date:20240920---for:【issues/7250】自动锁屏无法解锁
|
||||||
|
if (globalCache && router?.currentRoute?.value.path !== PageEnum.BASE_LOGIN) {
|
||||||
localMemory.setCache(globalCache);
|
localMemory.setCache(globalCache);
|
||||||
}
|
}
|
||||||
|
// update-end--author:liaozhiyang---date:20240920---for:【issues/7250】自动锁屏无法解锁
|
||||||
//update-end---author:scott ---date::2022-10-27 for:token过期退出重新登录,online菜单还是提示token过期----------
|
//update-end---author:scott ---date::2022-10-27 for:token过期退出重新登录,online菜单还是提示token过期----------
|
||||||
return localMemory.get(key)?.value as Nullable<T>;
|
return localMemory.get(key)?.value as Nullable<T>;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue