1
0
mirror of https://github.com/1Panel-dev/1Panel.git synced 2025-01-19 16:29:17 +08:00

fix: 解决日志审计-网站切换网站日志显示错误的问题 (#2829)

This commit is contained in:
zhengkunwang 2023-11-07 12:19:29 +08:00 committed by GitHub
parent ebe74d905c
commit dd60eb099d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -25,7 +25,7 @@
</template> </template>
<template #search> <template #search>
<div> <div>
<el-select v-model="logReq.id" @change="search()"> <el-select v-model="logReq.id" @change="changeWebsite()">
<template #prefix>{{ $t('website.website') }}</template> <template #prefix>{{ $t('website.website') }}</template>
<el-option <el-option
v-for="(website, index) in websites" v-for="(website, index) in websites"
@ -152,6 +152,14 @@ const changeType = (type: string) => {
} }
}; };
const changeWebsite = () => {
logReq.page = 0;
logReq.pageSize = 500;
end.value = false;
content.value = '';
search();
};
const search = () => { const search = () => {
if (!end.value) { if (!end.value) {
logReq.page += 1; logReq.page += 1;