Browse Source

index bug ok

zizhong.wang 2 years ago
parent
commit
253293f498
1 changed files with 2 additions and 2 deletions
  1. 2 2
      pages/index/index.vue

+ 2 - 2
pages/index/index.vue

@@ -159,7 +159,7 @@ export default {
 	
 	
 	let that = this;
 	let that = this;
 	this.isAuth = getApp().globalData.isAuth;
 	this.isAuth = getApp().globalData.isAuth;
-	if (this.isAuth){
+	if (this.isAuth && this.owner_id > 0){
 		that.getHeatList();
 		that.getHeatList();
 	}
 	}
 	else{
 	else{
@@ -193,7 +193,7 @@ export default {
 	//this.getUserInfo();	
 	//this.getUserInfo();	
 	//this.getUserInfo();
 	//this.getUserInfo();
 	this.isAuth = getApp().globalData.isAuth;
 	this.isAuth = getApp().globalData.isAuth;
-	if (this.isAuth){
+	if (this.isAuth && this.owner_id > 0){
 		that.getHeatList();
 		that.getHeatList();
 	}
 	}