微调
这个提交包含在:
父节点
91bcd41128
当前提交
dca3069591
@ -1,7 +1,7 @@
|
|||||||
/**
|
/**
|
||||||
* Use these variables when you tailor your ArkTS code. They must be of the const type.
|
* 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 BUILD_MODE_NAME = 'release';
|
||||||
export const DEBUG = false;
|
export const DEBUG = false;
|
||||||
export const TARGET_NAME = 'default';
|
export const TARGET_NAME = 'default';
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@szyx/sdk_base",
|
"name": "@szyx/sdk_base",
|
||||||
"version": "1.0.1",
|
"version": "1.0.2",
|
||||||
"description": "数字医信公司,鸿蒙app开发基础工具。",
|
"description": "数字医信公司,鸿蒙app开发基础工具。",
|
||||||
"main": "Index.ets",
|
"main": "Index.ets",
|
||||||
"author": "szyx",
|
"author": "szyx",
|
||||||
|
|||||||
@ -7,7 +7,7 @@ export class AppStorageHelper {
|
|||||||
* @param key
|
* @param key
|
||||||
* @param value
|
* @param value
|
||||||
*/
|
*/
|
||||||
public static save(key: string, value: string|undefined) {
|
public static save<T>(key: string, value: T|undefined) {
|
||||||
PersistentStorage.persistProp(key, value)
|
PersistentStorage.persistProp(key, value)
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -16,7 +16,7 @@ export class AppStorageHelper {
|
|||||||
* @param key
|
* @param key
|
||||||
* @returns
|
* @returns
|
||||||
*/
|
*/
|
||||||
public static get(key: string):string|undefined {
|
public static get<T>(key: string):T|undefined {
|
||||||
return AppStorage.get<string>(key)
|
return AppStorage.get<T>(key)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
正在加载...
在新工单中引用
屏蔽一个用户