17
This commit is contained in:
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user