浏览代码

index bug ok

zizhong.wang 2 年之前
父节点
当前提交
253293f498
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      pages/index/index.vue

+ 2 - 2
pages/index/index.vue

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