优化
This commit is contained in:
32
unpackage/dist/dev/mp-weixin/app.js
vendored
32
unpackage/dist/dev/mp-weixin/app.js
vendored
@@ -14,30 +14,19 @@ if (!Math) {
|
||||
"./pages/Mine/minecomponents/DetailsPKRecords/DetailsPKRecords.js";
|
||||
"./pages/PKMessageprocessing/PKMessageprocessing.js";
|
||||
"./pages/index/index.js";
|
||||
"./pages/index/chat/chat.js";
|
||||
"./pages/login/login.js";
|
||||
"./pages/Forum/Forum.js";
|
||||
"./pages/UserInformation/UserInformation.js";
|
||||
"./pages/Setting/Setting.js";
|
||||
"./pages/NewAddedPk/NewAddedPk.js";
|
||||
"./pages/pkDetail/pkDetail.js";
|
||||
"./TUIKit/components/TUIConversation/index.js";
|
||||
"./TUIKit/components/TUIChat/index.js";
|
||||
"./TUIKit/components/TUIChat/video-play.js";
|
||||
"./TUIKit/components/TUIChat/web-view.js";
|
||||
"./TUIKit/components/TUIContact/index.js";
|
||||
"./TUIKit/components/TUIGroup/index.js";
|
||||
"./TUIKit/components/TUISearch/index2.js";
|
||||
"./TUIKit/components/TUIConversation/conversation-list/index2.js";
|
||||
}
|
||||
const _sfc_main = {
|
||||
data() {
|
||||
return {
|
||||
info: {},
|
||||
userSig: "",
|
||||
chatInfo: {}
|
||||
};
|
||||
return {};
|
||||
},
|
||||
onLoad(option) {
|
||||
onLoad() {
|
||||
},
|
||||
methods: {},
|
||||
provide() {
|
||||
@@ -48,14 +37,17 @@ const _sfc_main = {
|
||||
};
|
||||
}
|
||||
};
|
||||
const goeasyInstance = common_vendor.jo.getInstance({
|
||||
host: "hangzhou.goeasy.io",
|
||||
appkey: "BC-b858b695aa404138a0547d71da77bbb0",
|
||||
modules: ["im"]
|
||||
});
|
||||
function createApp() {
|
||||
const app = common_vendor.createSSRApp(_sfc_main);
|
||||
app.use(common_vendor.createPinia());
|
||||
return {
|
||||
app,
|
||||
Pinia: common_vendor.Pinia
|
||||
// 此处必须将 Pinia 返回
|
||||
};
|
||||
const pinia = common_vendor.createPinia();
|
||||
app.config.globalProperties.$goeasy = goeasyInstance;
|
||||
app.use(pinia);
|
||||
return { app, pinia };
|
||||
}
|
||||
createApp().app.mount("#app");
|
||||
exports.createApp = createApp;
|
||||
|
||||
Reference in New Issue
Block a user