From dca30695911204010ef57ac6db692c77ce2b85c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BE=90=E5=8B=A4=E6=B0=91?= Date: Tue, 24 Sep 2024 17:50:53 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BE=AE=E8=B0=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- BuildProfile.ets | 2 +- oh-package.json5 | 2 +- src/main/ets/utils/AppStorageHelper.ets | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/BuildProfile.ets b/BuildProfile.ets index e11789b..ac4967e 100644 --- a/BuildProfile.ets +++ b/BuildProfile.ets @@ -1,7 +1,7 @@ /** * Use these variables when you tailor your ArkTS code. They must be of the const type. */ -export const HAR_VERSION = '1.0.1'; +export const HAR_VERSION = '1.0.2'; export const BUILD_MODE_NAME = 'release'; export const DEBUG = false; export const TARGET_NAME = 'default'; diff --git a/oh-package.json5 b/oh-package.json5 index 4f352ba..b1eba9d 100644 --- a/oh-package.json5 +++ b/oh-package.json5 @@ -1,6 +1,6 @@ { "name": "@szyx/sdk_base", - "version": "1.0.1", + "version": "1.0.2", "description": "数字医信公司,鸿蒙app开发基础工具。", "main": "Index.ets", "author": "szyx", diff --git a/src/main/ets/utils/AppStorageHelper.ets b/src/main/ets/utils/AppStorageHelper.ets index fe59065..e383c5f 100644 --- a/src/main/ets/utils/AppStorageHelper.ets +++ b/src/main/ets/utils/AppStorageHelper.ets @@ -7,7 +7,7 @@ export class AppStorageHelper { * @param key * @param value */ - public static save(key: string, value: string|undefined) { + public static save(key: string, value: T|undefined) { PersistentStorage.persistProp(key, value) } @@ -16,7 +16,7 @@ export class AppStorageHelper { * @param key * @returns */ - public static get(key: string):string|undefined { - return AppStorage.get(key) + public static get(key: string):T|undefined { + return AppStorage.get(key) } } \ No newline at end of file