소스 검색

论坛详情返回论坛首页

canghailong 6 달 전
부모
커밋
2dc4482a24
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/views/forum/detail.vue

+ 1 - 1
src/views/forum/detail.vue

@@ -224,7 +224,7 @@
 	}
 	//回到首页
 	const goToHome = () => {
-		router.go(-1)
+		router.push('/forum')
 	}
 	onMounted(() => {
 		if (route.query.postId) {