acdr-ui/dist/build/mp-weixin/app.js

2 lines
1.0 KiB
JavaScript

"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./common/vendor.js"),t=require("./service/notificationService.js"),r=require("./sheep/index.js"),o=require("./store/index.js"),n=require("./interceptors/route.js"),s=require("./interceptors/request.js"),i=require("./interceptors/prototype.js"),a=require("./sheep/store/index.js");Math;const p={__name:"App",setup:o=>(e.onLoad((()=>{e.index.hideTabBar()})),e.onLaunch((()=>{e.index.hideTabBar(),t.notificationService.startPollingUnreadMessages(),r.ShoproInit()})),e.onShow((()=>{t.notificationService.startPollingUnreadMessages()})),e.onHide((()=>{t.notificationService.stopPollingUnreadMessages()})),()=>{})};function u(){const t=e.createSSRApp(p);return a.setupPinia(o.store),t.use(o.store),t.use(n.routeInterceptor),t.use(s.requestInterceptor),t.use(i.prototypeInterceptor),t.component("layout-default-uni",c),t.component("layout-demo-uni",d),{app:t}}const c=()=>"./layouts/default.js",d=()=>"./layouts/demo.js";u().app.mount("#app"),exports.createApp=u;