first commit
This commit is contained in:
36
unpackage/dist/dev/mp-weixin/app.js
vendored
Normal file
36
unpackage/dist/dev/mp-weixin/app.js
vendored
Normal file
@@ -0,0 +1,36 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
||||
const common_vendor = require("./common/vendor.js");
|
||||
const store_index = require("./store/index.js");
|
||||
const uni_modules_uviewPlus_index = require("./uni_modules/uview-plus/index.js");
|
||||
const uni_modules_uviewPlus_libs_mixin_mpShare = require("./uni_modules/uview-plus/libs/mixin/mpShare.js");
|
||||
if (!Math) {
|
||||
"./pages/index/index.js";
|
||||
"./pages/login/login.js";
|
||||
"./pages/login/register.js";
|
||||
"./pages/login/getBack.js";
|
||||
"./pages/login/getBackAccout.js";
|
||||
}
|
||||
const _sfc_main = {
|
||||
onLaunch: function(options) {
|
||||
let token = common_vendor.index.getStorageSync("token");
|
||||
if (token) {
|
||||
store_index.store.commit("setToken", token);
|
||||
}
|
||||
},
|
||||
onShow: function(e) {
|
||||
},
|
||||
onHide: function() {
|
||||
}
|
||||
};
|
||||
function createApp() {
|
||||
const app = common_vendor.createSSRApp(_sfc_main);
|
||||
app.mixin(uni_modules_uviewPlus_libs_mixin_mpShare.mpShare);
|
||||
app.use(uni_modules_uviewPlus_index.uviewPlus);
|
||||
app.use(store_index.store);
|
||||
return {
|
||||
app
|
||||
};
|
||||
}
|
||||
createApp().app.mount("#app");
|
||||
exports.createApp = createApp;
|
||||
Reference in New Issue
Block a user