clay edit : 文章列表点击后打开新页面展示详情

This commit is contained in:
clay
2022-10-03 20:08:40 +08:00
parent f3a24641e1
commit 0f7cc53a3a

View File

@@ -103,11 +103,13 @@ export default {
} else {
router = "/" + this.value.navId + "?id=" + context.id + "&lang=" + sessionStorage.getItem("lang")
}
let routeData = null;
if (this.width <= 992) {
this.$router.push("/mobile/" + this.value.secondId + router);
routeData = this.$router.resolve({path: "/mobile/" + this.value.secondId + router});
} else {
this.$router.push("/pc/" + this.value.secondId + router);
routeData = this.$router.resolve({path: "/pc/" + this.value.secondId + router});
}
window.open(routeData.href,"_blank")
},
handleSizeChange(val) {
console.log(`每页 ${val}`);