Merge pull request #3278 from jumpserver/pr@dev@perf_add_debug_msg

perf: 添加 setTimeout
This commit is contained in:
老广
2023-07-20 15:21:57 +08:00
committed by GitHub

View File

@@ -4,9 +4,7 @@
<i v-else class="fa fa-times text-danger" />
</span>
<span v-else :title="value">
<span>
{{ value }}
</span>
{{ value }}
</span>
</template>
@@ -47,11 +45,12 @@ export default {
}
},
mounted() {
this.getValue()
setTimeout(() => {
this.getValue()
}, 10)
},
methods: {
async getValue() {
this.loading = true
this.attr = this.formatterArgs.attrs.find(attr => attr.name === this.row.name)
this.match = this.row.match
this.$log.debug('ValueFormatter: ', this.attr, this.row.name)
@@ -75,9 +74,7 @@ export default {
this.value = this.cellValue
}
console.log('Value: ', this.value)
this.loading = false
}
}
}
</script>