2 lines
766 B
JavaScript
2 lines
766 B
JavaScript
"use strict";const e=require("./url/index.js"),r=require("./router/index.js"),t=require("./platform/index.js"),o=require("./helper/index.js"),n=require("./config/zIndex.js"),i=require("./store/index.js"),s=require("../common/vendor.js");s.dayjs.locale("zh-cn"),s.dayjs.extend(s.relativeTime),s.dayjs.extend(s.duration);const l={$store:i.$store,$url:e.$url,$router:r.$router,$platform:t._platform,$helper:o.$helper,$zIndex:n.zIndex};exports.ShoproInit=function(){return e=this,r=null,o=function*(){yield i.$store("app").init(),t._platform.load()},new Promise(((t,n)=>{var i=e=>{try{l(o.next(e))}catch(r){n(r)}},s=e=>{try{l(o.throw(e))}catch(r){n(r)}},l=e=>e.done?t(e.value):Promise.resolve(e.value).then(i,s);l((o=o.apply(e,r)).next())}));var e,r,o},exports.sheep=l;
|