clay edit : 文章列表点击后打开新页面展示详情
This commit is contained in:
@@ -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} 条`);
|
||||
|
||||
Reference in New Issue
Block a user