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