Conformance: fix scrollTop error & Have activity done.

This commit is contained in:
chiayin
2023-07-28 12:42:28 +08:00
parent 864b7bf0ae
commit 86e1c52585

View File

@@ -58,6 +58,7 @@
import { storeToRefs } from 'pinia';
import ConformanceStore from '@/stores/conformance.js';
import cytoscapeMapTrace from '@/module/cytoscapeMapTrace.js';
import { nextTick } from 'vue';
export default {
props: ['issusModal', 'issusNo', 'traceId', 'firstCases'],
@@ -129,7 +130,7 @@ export default {
},
showTraceId: function(newValue, oldValue) {
let isScrollTop = document.querySelector('.infiniteTable');
if(typeof isScrollTop.scrollTop !== 'undefined') if(newValue !== oldValue) isScrollTop.scrollTop = 0;
if(isScrollTop && typeof isScrollTop.scrollTop !== 'undefined') if(newValue !== oldValue) isScrollTop.scrollTop = 0;
},
firstCases: function(newValue, oldValue){
this.infiniteData = newValue;