61 lines
1.9 KiB
JavaScript
61 lines
1.9 KiB
JavaScript
"use strict";
|
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
const common_vendor = require("./common/vendor.js");
|
|
if (!Math) {
|
|
"./pages/index/index.js";
|
|
"./pages/order/create.js";
|
|
"./pages/product/select.js";
|
|
"./pages/product/list.js";
|
|
"./pages/product/form.js";
|
|
"./pages/product/categories.js";
|
|
"./pages/product/units.js";
|
|
"./pages/product/settings.js";
|
|
"./pages/customer/select.js";
|
|
"./pages/customer/form.js";
|
|
"./pages/supplier/select.js";
|
|
"./pages/account/select.js";
|
|
"./pages/detail/index.js";
|
|
}
|
|
const _sfc_main = {
|
|
onLaunch: function() {
|
|
common_vendor.index.__f__("log", "at App.vue:4", "App Launch");
|
|
},
|
|
onShow: function() {
|
|
common_vendor.index.__f__("log", "at App.vue:7", "App Show");
|
|
},
|
|
onHide: function() {
|
|
common_vendor.index.__f__("log", "at App.vue:10", "App Hide");
|
|
}
|
|
};
|
|
function createApp() {
|
|
const app = common_vendor.createSSRApp(_sfc_main);
|
|
return {
|
|
app
|
|
};
|
|
}
|
|
if (typeof common_vendor.index !== "undefined" && typeof common_vendor.index.connectSocket === "function") {
|
|
const _connectSocket = common_vendor.index.connectSocket;
|
|
common_vendor.index.connectSocket = function(options) {
|
|
const task = _connectSocket.call(this, options);
|
|
if (task && typeof task.close === "function") {
|
|
const _close = task.close;
|
|
task.close = function(params = {}) {
|
|
if (params && typeof params === "object") {
|
|
const codeNum = Number(params.code);
|
|
const isValid = codeNum === 1e3 || codeNum >= 3e3 && codeNum <= 4999;
|
|
if (!isValid) {
|
|
params.code = 1e3;
|
|
if (!params.reason)
|
|
params.reason = "normalized from invalid close code";
|
|
}
|
|
}
|
|
return _close.call(this, params);
|
|
};
|
|
}
|
|
return task;
|
|
};
|
|
}
|
|
createApp().app.mount("#app");
|
|
exports.createApp = createApp;
|
|
//# sourceMappingURL=../.sourcemap/mp-weixin/app.js.map
|