mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-01-31 22:18:07 +08:00
perf: 优化错误日志超长下的显示 (#4711)
This commit is contained in:
parent
ad6a1ac465
commit
6a30ccd5dc
@ -1483,7 +1483,7 @@ const message = {
|
||||
issue: 'Feedback',
|
||||
doc: 'Official document',
|
||||
star: 'Star',
|
||||
description: 'Linux server operation and maintenance management panel',
|
||||
description: 'Linux Server Panel',
|
||||
forum: 'Forum Help',
|
||||
doc2: 'User Manual',
|
||||
currentVersion: 'Version',
|
||||
|
@ -125,12 +125,16 @@
|
||||
:width="400"
|
||||
trigger="hover"
|
||||
:content="installed.message"
|
||||
:popper-options="options"
|
||||
>
|
||||
<template #reference>
|
||||
<el-button link type="danger">
|
||||
<el-icon><Warning /></el-icon>
|
||||
</el-button>
|
||||
</template>
|
||||
<div class="app-error">
|
||||
{{ installed.message }}
|
||||
</div>
|
||||
</el-popover>
|
||||
</span>
|
||||
<span class="ml-1">
|
||||
@ -362,6 +366,17 @@ const mode = ref('installed');
|
||||
const moreTag = ref('');
|
||||
const language = getLanguage();
|
||||
const appDetail = ref();
|
||||
const options = {
|
||||
modifiers: [
|
||||
{
|
||||
name: 'flip',
|
||||
options: {
|
||||
padding: 5,
|
||||
fallbackPlacements: ['bottom-start', 'top-start', 'right', 'left'],
|
||||
},
|
||||
},
|
||||
],
|
||||
};
|
||||
|
||||
const sync = () => {
|
||||
ElMessageBox.confirm(i18n.global.t('app.syncAllAppHelper'), i18n.global.t('app.sync'), {
|
||||
@ -621,4 +636,9 @@ onUnmounted(() => {
|
||||
flex: 0 0 100%;
|
||||
}
|
||||
}
|
||||
|
||||
.app-error {
|
||||
max-height: 500px;
|
||||
overflow-y: auto;
|
||||
}
|
||||
</style>
|
||||
|
Loading…
x
Reference in New Issue
Block a user