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 #search>
<div>
<el-select v-model="logReq.id" @change="search()">
<el-select v-model="logReq.id" @change="changeWebsite()">
<template #prefix>{{ $t('website.website') }}</template>
<el-option
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 = () => {
if (!end.value) {
logReq.page += 1;