【issues/7250】自动锁屏无法解锁

pull/7333/head
JEECG 2 months ago
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 fortoken退onlinetoken---------- //update-begin---author:scott ---date:2022-10-27 fortoken退onlinetoken----------
const globalCache = ls.get(APP_LOCAL_CACHE_KEY); const globalCache = ls.get(APP_LOCAL_CACHE_KEY);
if(globalCache){ // update-begin--author:liaozhiyang---date:20240920---forissues/7250
if (globalCache && router?.currentRoute?.value.path !== PageEnum.BASE_LOGIN) {
localMemory.setCache(globalCache); localMemory.setCache(globalCache);
} }
// update-end--author:liaozhiyang---date:20240920---forissues/7250
//update-end---author:scott ---date::2022-10-27 fortoken退onlinetoken---------- //update-end---author:scott ---date::2022-10-27 fortoken退onlinetoken----------
return localMemory.get(key)?.value as Nullable<T>; return localMemory.get(key)?.value as Nullable<T>;
} }

Loading…
Cancel
Save