refactor: 仪表板跳转时首次刷新强制使用跳转条件

This commit is contained in:
wangjiahao 2021-11-25 12:13:03 +08:00
parent f9a8518975
commit 1366892de7

View File

@ -1,6 +1,6 @@
<template>
<div v-loading="dataLoading" class="bg">
<Preview v-show="!dataLoading" />
<Preview v-if="!dataLoading" />
</div>
</template>
<script>
@ -53,8 +53,10 @@ export default {
sourceFieldId: jumpParam.sourceFieldId,
targetPanelId: this.panelId
}
this.dataLoading = true
//
queryTargetPanelJumpInfo(jumpRequestParam).then(rsp => {
this.dataLoading = false
this.$store.commit('setNowTargetPanelJumpInfo', rsp.data)
this.$store.commit('addViewTrackFilter', jumpParam)
})