48 lines
1.3 KiB
JavaScript
48 lines
1.3 KiB
JavaScript
"use strict";
|
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
const common_vendor = require("./common/vendor.js");
|
|
const stores_useUserStore = require("./stores/useUserStore.js");
|
|
const common_globalFunction = require("./common/globalFunction.js");
|
|
if (!Math) {
|
|
"./pages/index/index.js";
|
|
"./pages/mine/mine.js";
|
|
"./pages/msglog/msglog.js";
|
|
"./pages/careerfair/careerfair.js";
|
|
"./pages/login/login.js";
|
|
}
|
|
const _sfc_main = {
|
|
__name: "App",
|
|
setup(__props) {
|
|
stores_useUserStore.useUserStore();
|
|
common_vendor.onLaunch(() => {
|
|
console.log("App Launch");
|
|
let openId = common_vendor.index.getStorageSync("openId") || "";
|
|
if (openId) {
|
|
console.log("有openid");
|
|
} else {
|
|
console.log("没有openid");
|
|
}
|
|
});
|
|
common_vendor.onShow(() => {
|
|
console.log("App Show");
|
|
});
|
|
common_vendor.onHide(() => {
|
|
console.log("App Hide");
|
|
});
|
|
return () => {
|
|
};
|
|
}
|
|
};
|
|
function createApp() {
|
|
const app = common_vendor.createSSRApp(_sfc_main);
|
|
app.use(common_vendor.createPinia());
|
|
app.provide("globalFunction", common_globalFunction.globalFunction);
|
|
app.provide("deviceInfo", common_globalFunction.globalFunction.getdeviceInfo());
|
|
return {
|
|
app,
|
|
Pinia: common_vendor.Pinia
|
|
};
|
|
}
|
|
createApp().app.mount("#app");
|
|
exports.createApp = createApp;
|