|
|
@@ -36,12 +36,15 @@ const { transferTo } = useTransferPage();
|
|
|
const { baseStickyTop } = useNavbar();
|
|
|
const userStore = useUserStore();
|
|
|
|
|
|
-const handleDetail = async (id: number | string) => {
|
|
|
+const handleDetail = async (id: number | string, title?: string) => {
|
|
|
const isLogin = await userStore.checkLogin();
|
|
|
if (isLogin) {
|
|
|
- transferTo(mxConst.routes.newsDetail, {
|
|
|
+ const pagePath = ('' + id).includes(',') ? mxConst.routes.newsGroup : mxConst.routes.newsDetail;
|
|
|
+ console.log(pagePath)
|
|
|
+ transferTo(pagePath, {
|
|
|
data: {
|
|
|
- id: id
|
|
|
+ id: id,
|
|
|
+ title: title
|
|
|
}
|
|
|
});
|
|
|
}
|