micro-action-service.ts 808 字节
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
/**
 * 微应用行为处理服务
 *
 * @export
 * @class MicroActionService
 */
 export class MicroActionService {

    /**
     * 唯一实例
     * 
     * @private
     * @static
     * @memberof MicroActionService
     */
    private static readonly instance = new MicroActionService();

    /**
     * 获取唯一实例
     *
     * @static
     * @return {*}  {MicroActionService}
     * @memberof MicroActionService
     */
    public static getInstance(): MicroActionService {
        return MicroActionService.instance;
    }

    /**
     * 处理基座应用通知
     *
     * @param {*} state
     * @memberof MicroActionService
     */
    public handleAction(state: any) {
        const { tag, action, data } = state;
        console.log(`${tag}应用${action}行为未实现`);
    }

}