CRMEB/public/system/util/mpFrame.js
2018-12-31 13:39:11 +08:00

12 lines
470 B
JavaScript

(function(global){
var factory = {},startCache = null,startCacheFn = function(startFn){ startFn && startFn(startCache);};
factory.start = function(startFn){
typeof startCache == 'function' ? startCacheFn(startFn) : requirejs(['vue','iview','layer'],function(Vue,iView,layer){
Vue.use(iView);
window.iView = iView;
(startCache = Vue) && startCacheFn(startFn);
});
};
global.mpFrame = factory;
})(this);