mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2024-11-24 02:59:16 +08:00
fix: 解决日志审计-网站切换网站日志显示错误的问题 (#2829)
This commit is contained in:
parent
ebe74d905c
commit
dd60eb099d
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user