|
@@ -177,7 +177,7 @@
|
|
|
<UserClaimPopper ref="popperRef" @claimSuccess="claimSuccess" />
|
|
|
</div>
|
|
|
</el-card>
|
|
|
- <el-card class="project-content">
|
|
|
+ <el-card class="project-content" ref="timeList">
|
|
|
<div slot="header" class="p-h-title">项目公告</div>
|
|
|
<div class="p-c-main">
|
|
|
<TimeLine :stepList="timeLineList" />
|
|
@@ -433,6 +433,12 @@ export default {
|
|
|
},
|
|
|
mounted() {
|
|
|
window.addEventListener('click', this.doClosePopover)
|
|
|
+ // 从详情页过来时,跳转定位到项目公告
|
|
|
+ if (document.referrer && document.referrer?.indexOf('/content/') !== -1) {
|
|
|
+ this.$nextTick(() => {
|
|
|
+ this.$refs.timeList.$el.scrollIntoView()
|
|
|
+ })
|
|
|
+ }
|
|
|
},
|
|
|
beforeMount() {
|
|
|
window.removeEventListener('click', this.doClosePopover)
|