fix: 解决日志审计网站日志在网站为空的时候报错的问题 (#3452)

Refs https://github.com/1Panel-dev/1Panel/issues/3449
pull/3454/head
zhengkunwang 11 months ago committed by GitHub
parent a6c681a429
commit b547955965
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -35,7 +35,7 @@
></el-option>
</el-select>
<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') }}
</el-checkbox>
</el-button>
@ -73,7 +73,7 @@ import LogFile from '@/components/log-file/index.vue';
const logConfig = reactive({
type: 'website',
id: 0,
id: undefined,
name: 'access.log',
});
const showLog = ref(false);

Loading…
Cancel
Save