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

/**
 * 安装插件
 *
 */
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;
};