Browse Source

论坛详情返回论坛首页

canghailong 6 tháng trước cách đây
mục cha
commit
2dc4482a24
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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) {