Home > @elux/vue-web > BaseModel > getRootState

BaseModel.getRootState() method

获取Store的全局状态,参见IStore

Signature:

protected getRootState(type?: 'previous' | 'uncommitted'): TStoreState;

Parameters

ParameterTypeDescription
type'previous' | 'uncommitted'不传表示当前状态,previous表示路由跳转之前的状态,uncommitted表示未提交的状态

Returns:

TStoreState