Merge pull request 'clay edit : 文章列表点击后打开新页面展示详情' (#1) from clay into master

Reviewed-on: http://git.hchyun.com/feashow/sist_web/pulls/1
This commit is contained in:
clay
2022-10-03 12:09:12 +00:00

View File

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