日志过长换行显示

This commit is contained in:
lyd
2022-09-27 17:19:47 +08:00
parent b842f9932e
commit a7639b0332

View File

@@ -99,13 +99,15 @@
</el-form-item> </el-form-item>
</el-form> </el-form>
</div> </div>
<div style="margin: 3px; min-height: 80vh"> <div style="margin: 3px; min-height: 80vh;">
<!--数据判空--> <!--数据判空-->
<el-empty v-if="showEmpty" :description="emptyText" /> <el-empty v-if="showEmpty" :description="emptyText" />
<!--数据加载--> <!--数据加载-->
<el-card v-else shadow="hover"> <el-card v-else shadow="hover" style="width: 100%" class="log-warpper">
<div v-for="(log, index) in logs" :key="index"> <div style="width: 100%">
<div style="margin-bottom: 5px; font-size: 12px; width: 100%" v-html="log[1]" /> <div v-for="(log, index) in logs" :key="index" >
<div style="margin-bottom: 5px; font-size: 12px;" v-html="log[1]" />
</div>
</div> </div>
</el-card> </el-card>
</div> </div>
@@ -461,5 +463,8 @@ export default {
</script> </script>
<style scoped> <style scoped>
.log-warpper {
word-break: break-all;
word-wrap: break-word
}
</style> </style>