@@ -11,15 +11,15 @@
onLaunch: function() {
},
onShow: function() {
- if(uni.getStorageSync('userInfo')){
- uni.reLaunch({
- url:'/pages/home'
- })
- }else{
- url:'/pages/login'
- }
+ // if(uni.getStorageSync('userInfo')){
+ // uni.reLaunch({
+ // url:'/pages/home'
+ // })
+ // }else{
+ // url:'/pages/login'
+ // }
onHide: function() {
}
@@ -19,6 +19,13 @@
agree:false
+ onReady() {
+ if(uni.getStorageSync('userInfo')){
+ uni.reLaunch({
+ url:'/pages/home'
+ })
+ }
+ },
methods:{
changeAgree(){
this.agree = !this.agree;