于添 6 месяцев назад
Родитель
Сommit
d89547f9a0

+ 4 - 3
.env.production

@@ -5,10 +5,11 @@ NODE_ENV = production
 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_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_PORT = 9000

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

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

Разница между файлами не показана из-за своего большого размера
+ 0 - 0
stats.html


Некоторые файлы не были показаны из-за большого количества измененных файлов