锚点定位影响地址

This commit is contained in:
chenjianan
2019-05-29 12:11:18 +08:00
parent f9afa032a0
commit d9891368ee

View File

@@ -205,13 +205,13 @@ export default {
},
methods: {
searchContactDetail(row) {
window.location.hash = '#firstAnchor'
document.documentElement.scrollTop = this.$el.querySelector('#firstAnchor').offsetTop
searchContactDetail(row.采购合同流水号).then(response => {
this.contractDetail1 = response.data[0].合同内容
})
},
searchOfflineContactDetail(row) { // 查询离线合同明细
window.location.hash = '#secondAnchor'
document.documentElement.scrollTop = this.$el.querySelector('#secondAnchor').offsetTop
searchMateriel(row.离线合同流水号).then(response => {
this.contractDetail2 = response.data
})