1 Star 0 Fork 67

liaofan / HasChatApp

forked from howcode / HasChatApp 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
App.vue 607 Bytes
一键复制 编辑 原始数据 按行查看 历史
howcode 提交于 2022-06-05 21:50 . update:重定向
<script>
export default {
onLaunch: function() {
if (this.$Common.isLogin()) {
let sender = uni.getStorageSync("sender");
if (sender) {
this.$store.commit("setPropName", {
propName: 'sender',
value: JSON.parse(sender)
});
}
this.$Common.reLaunch("/chatUser/chatUser");
}else{
this.$Common.redirectTo("/index/index");
}
},
onShow: function() {
console.log('App Show')
},
onHide: function() {
console.log('App Hide')
}
}
</script>
<style>
@import url("@/static/iconfont/iconfont.css");
@import url("@/static/css/common.css");
</style>
JavaScript
1
https://gitee.com/liaofanw/has-chat-app.git
git@gitee.com:liaofanw/has-chat-app.git
liaofanw
has-chat-app
HasChatApp
master

搜索帮助