Home > @elux/vue-web > IStore > mount

IStore.mount() method

在该store中挂载指定的model

Signature:

mount(moduleName: keyof TStoreState, env: 'init' | 'route' | 'update'): void | Promise<void>;

Parameters

ParameterTypeDescription
moduleNamekeyof TStoreState
env'init' | 'route' | 'update'

Returns:

void | Promise<void>

Remarks

该方法会触发model.onMount(env)钩子