于添 6 月之前
父节点
当前提交
d89547f9a0
共有 4 个文件被更改,包括 32 次插入13 次删除
  1. 4 3
      .env.production
  2. 14 8
      src/views/portal/components/UserHeader.vue
  3. 14 2
      src/views/resourceDetails/components/TallList.vue
  4. 0 0
      stats.html

+ 4 - 3
.env.production

@@ -5,10 +5,11 @@ NODE_ENV = production
 VITE_TITLE = 飞行学院
 VITE_TITLE = 飞行学院
 
 
 # 接口地址
 # 接口地址
-#VITE_API_BASEURL = http://192.168.1.245:19003
-VITE_API_BASEURL = http://22.120.128.109:19003
+VITE_API_BASEURL = http://192.168.1.245:19003
+#VITE_API_BASEURL = http://22.120.128.109:19003
 #VITE_API_BASEURL = http://192.168.31.56:19003
 #VITE_API_BASEURL = http://192.168.31.56:19003
-VITE_FILEURL = http://22.120.128.108:10005/education/
+VITE_FILEURL = http://192.168.1.245:10005/education/
+#VITE_FILEURL = http://22.120.128.108:10005/education/
 #VITE_FILEURL = http://192.168.31.56:10005/education/
 #VITE_FILEURL = http://192.168.31.56:10005/education/
 # 本地端口
 # 本地端口
 VITE_PORT = 9000
 VITE_PORT = 9000

+ 14 - 8
src/views/portal/components/UserHeader.vue

@@ -153,14 +153,20 @@
 	}
 	}
 
 
 	const getCounts = async () => {
 	const getCounts = async () => {
-		//站内信
-	  let funcType1 = await getCount({funcType : 1})
-		console.log('获取未读数量 站内信',funcType1)
-		let funcType2 = await getCount({funcType : 2})
-		console.log('获取未读数量 公告',funcType2)
-		myMsgCount.value = funcType1.data.unreadCount
-		announcementLookManagementCount.value = funcType2.data.unreadCount
-		allCount.value = funcType1.data.unreadCount+ funcType2.data.unreadCount
+// 获取路径部分
+		const currentPath = window.location.pathname;
+		console.log('当前路径',' currentPath ',currentPath)
+		if(currentPath != '/tlogin'){
+			//站内信
+			let funcType1 = await getCount({funcType : 1})
+			console.log('获取未读数量 站内信',funcType1)
+			let funcType2 = await getCount({funcType : 2})
+			console.log('获取未读数量 公告',funcType2)
+			myMsgCount.value = funcType1.data.unreadCount
+			announcementLookManagementCount.value = funcType2.data.unreadCount
+			allCount.value = funcType1.data.unreadCount+ funcType2.data.unreadCount
+		}
+
 
 
 
 
 	}
 	}

+ 14 - 2
src/views/resourceDetails/components/TallList.vue

@@ -216,8 +216,20 @@
 		} else {
 		} else {
 			getHotPageComment()
 			getHotPageComment()
 		}
 		}
+	}
 
 
+	const handelrSelectTabget = (data) => {
+		pagers.pages = 1
+		pagers.size = 20
+		// pagers.sortflag = tabKey.value
+		if (tabKey.value == 0) {
+			getPageComment()
+		} else {
+			getHotPageComment()
+		}
 	}
 	}
+
+
 	const handerPublish = () => {
 	const handerPublish = () => {
 
 
 		if(talk.value.length == 0){
 		if(talk.value.length == 0){
@@ -299,8 +311,8 @@
 		getPageComment()
 		getPageComment()
 	})
 	})
 
 
-	EventBus.off('onGetPageComment', getPageComment)
-	EventBus.on('onGetPageComment', getPageComment)
+	EventBus.off('onGetPageComment', handelrSelectTabget)
+	EventBus.on('onGetPageComment', handelrSelectTabget)
 
 
 	defineExpose({ onGetPageCommentNew })
 	defineExpose({ onGetPageCommentNew })
 	// EventBus.off('onGetPageCommentNew', getPageCommentNew)
 	// EventBus.off('onGetPageCommentNew', getPageCommentNew)

文件差异内容过多而无法显示
+ 0 - 0
stats.html


部分文件因为文件数量过多而无法显示