vueinstall.ts 496 字节
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
import { AppActionFactory } from "./app-logic/app-action-factory";
import { AppUILogicService } from "./app-logic/appuilogic";

/**
 * 安装插件
 *
 */
export const vueinstall = function (): void {
    // 避免出现重复实例化
    if ((window as any).___ibz___uilogic_init === true) {
        return;
    }
    (window as any).___ibz___uilogic_init = true;
    (window as any).UILogicService = AppUILogicService.getInstance();
    (window as any).AppActionFactory = AppActionFactory;
};