1 Star 0 Fork 64

from-other-code/uni-chat

forked from 野火IM/uni-chat 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
App.vue 757 Bytes
一键复制 编辑 原始数据 按行查看 历史
armXyz 提交于 2023-03-21 22:53 +08:00 . 推送相关 deviceToken 设置错误
<script>
import store from "./store";
import wfc from "./wfc/client/wfc";
export default {
onLaunch: function () {
console.log("App Launch");
plus.push.getClientInfoAsync((info) => {
let cid = info["clientid"];
if (cid){
console.log('push clientId', cid);
wfc.setDeviceToken(7, cid);
}
});
},
onShow: function () {
console.log("App Show");
store.state.misc.isAppHidden = false;
},
onHide: function () {
console.log("App Hide");
store.state.misc.isAppHidden = true;
},
};
</script>
<style>
/*每个页面公共css */
@import './global.css';
@import './wfc.css';
@import './static/customicons.css';
@import './assets/fonts/icomoon/style.css';
</style>
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/from-other-code/uni-chat.git
git@gitee.com:from-other-code/uni-chat.git
from-other-code
uni-chat
uni-chat
main

搜索帮助