mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-01-19 16:29:17 +08:00
fix: 解决日志审计网站日志在网站为空的时候报错的问题 (#3452)
Refs https://github.com/1Panel-dev/1Panel/issues/3449
This commit is contained in:
parent
a6c681a429
commit
b547955965
@ -35,7 +35,7 @@
|
|||||||
></el-option>
|
></el-option>
|
||||||
</el-select>
|
</el-select>
|
||||||
<el-button class="left-button">
|
<el-button class="left-button">
|
||||||
<el-checkbox v-model="tailLog" @change="changeTail">
|
<el-checkbox v-model="tailLog" @change="changeTail" :disabled="logConfig.id == undefined">
|
||||||
{{ $t('commons.button.watch') }}
|
{{ $t('commons.button.watch') }}
|
||||||
</el-checkbox>
|
</el-checkbox>
|
||||||
</el-button>
|
</el-button>
|
||||||
@ -73,7 +73,7 @@ import LogFile from '@/components/log-file/index.vue';
|
|||||||
|
|
||||||
const logConfig = reactive({
|
const logConfig = reactive({
|
||||||
type: 'website',
|
type: 'website',
|
||||||
id: 0,
|
id: undefined,
|
||||||
name: 'access.log',
|
name: 'access.log',
|
||||||
});
|
});
|
||||||
const showLog = ref(false);
|
const showLog = ref(false);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user