store/zodiac

起源:配置存储


Methods

(static) storeApp(data, isKey) → {any}

「引擎」Ux.storeApp

首页一般会读取相关的应用数据,然后将应用存储到 localStorage 中,存储的数值包括:

  • App本身数据的存储。
  • X-App-Id的存储。
  • X-Sigma的存储。
  • 如果开启了 isKey = true,则存储X-App-Key
Parameters:
Name Type Default Description
data Object

传入的应用数据。

isKey boolean false

是否存储 appKey。

Returns:

返回应用数据。

Type
any

(static) storeModule(data, configKey) → {any}

「引擎」Ux.storeModule

模块化存储数据到 KEY_APP 中,存储位置为 configKey,如果是多个模块则 直接存储多个模块中的配置数据信息,如

mIso = {} mHotel = {} mIoT = {}

Parameters:
Name Type Description
data Object

传入的模块配置数据。

configKey String

模块专用 key 值,配置在 uiConfig 中的 store 字段中

Returns:

返回存储的模块配置数据。

Type
any

(static) storeUser(data) → {any}

「引擎」Ux.storeUser

登录过后存储用户的专用方法,存储当前用户数据到 sessionStorage 中。

Parameters:
Name Type Description
data Object

被存储的用户数据。

Returns:

返回存储好的数据。

Type
any