This commit is contained in:
cansnow
2025-12-23 00:18:46 +08:00
parent 59d1ba9a7e
commit f49f1f1ad1
54 changed files with 25338 additions and 333 deletions
+5 -6
View File
@@ -10,18 +10,17 @@
export default {
onLaunch: function() {
console.log("App Launch");
// #ifdef H5
// #ifndef APP
console.error(
`暂时不支持运行到 Web,如果需要移动端的 Web 项目,参考 [H5 demo](https://github.com/openimsdk/openim-h5-demo)`
`暂时不支持运行到 Web或小程序端,如果需要移动端的 Web 项目,参考 [H5 demo](https://github.com/openimsdk/openim-h5-demo)`
);
return ;
// #endif
// #ifdef MP-WEIXIN
console.error(`暂时不支持运行到小程序端`);
// #endif
// #ifdef APP
this.checkUpdate();
this.setGlobalIMlistener();
this.tryLogin();
// #endif
},
onShow: function() {
console.log("App Show");
@@ -80,7 +79,7 @@
uni.removeStorage({
key: "BusinessToken",
});
uni.$u.route("/pages/login/index");
uni.$u.route("/pages/common/login/index");
});
};
IMSDK.subscribe(IMSDK.IMEvents.OnKickedOffline, (data) => {