起源:配置检查
Methods
(static) isInit() → {any}
「引擎」Ux.isInit
和 storeApp
对应的初始化应用数据读取专用方法。
// 读取当前应用数据
import Ux from 'ux';
const app = Ux.isInit();
Returns:
返回当前应用程序数据信息,如果没有则返回 {}
。
- Type
- any
(static) isLogged() → {any}
「引擎」Ux.isLogged
和 storeUser
对应的登录用户数据读取专用方法。
- 如果已登录,则可以读取用户数据。
- 如果未登录,则用户数据为空对象。
// 读取当前用户登录数据
import Ux from 'ux';
const user = Ux.isLogged();
Returns:
返回登录的用户数据信息,如果未登录返回 {}
。
- Type
- any
(static) isMod(moduleKey) → {*}
「引擎」Ux.isMod
Parameters:
Name | Type | Description |
---|---|---|
moduleKey |
Returns:
- Type
- *