From 914c18aa66a7fbde2d54a05cdf583138bf7f230b Mon Sep 17 00:00:00 2001 From: Ben Lin <maobin001@msn.com> Date: 星期日, 27 十月 2024 16:59:19 +0800 Subject: [PATCH] 计划任务更新 --- src/utils/cache/index.ts | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/utils/cache/index.ts b/src/utils/cache/index.ts index 01a11f5..62df442 100644 --- a/src/utils/cache/index.ts +++ b/src/utils/cache/index.ts @@ -1,13 +1,13 @@ -import { getStorageShortName } from '/@/utils/env'; +import { getStorageShortName } from '@/utils/env'; import { createStorage as create, CreateStorageParams } from './storageCache'; -import { enableStorageEncryption, DEFAULT_CACHE_TIME } from '/@/settings/encryptionSetting'; +import { SHOULD_ENABLE_STORAGE_ENCRYPTION, DEFAULT_CACHE_TIME } from '@/settings/encryptionSetting'; export type Options = Partial<CreateStorageParams>; const createOptions = (storage: Storage, options: Options = {}): Options => { return { // No encryption in debug mode - hasEncrypt: enableStorageEncryption, + hasEncrypt: SHOULD_ENABLE_STORAGE_ENCRYPTION, storage, prefixKey: getStorageShortName(), ...options, -- Gitblit v1.9.3