mirror of
https://github.com/jumpserver/lina.git
synced 2026-01-15 14:24:39 +00:00
Merge pull request #3278 from jumpserver/pr@dev@perf_add_debug_msg
perf: 添加 setTimeout
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user