fix: correct backup account name search (#14375)

This commit is contained in:
ssongliu
2026-11-10 10:42:21 +08:00
committed by GitHub
parent e65a9d9939
commit a4572e0ca4
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -86,7 +86,7 @@ func (u *BackupService) SearchWithPage(req dto.SearchPageWithType) (int64, inter
options = append(options, repo.WithByType(req.Type))
}
if len(req.Info) != 0 {
options = append(options, repo.WithByType(req.Info))
options = append(options, repo.WithByLikeName(req.Info))
}
count, accounts, err := backupRepo.Page(req.Page, req.PageSize, options...)
if err != nil {
+1 -1
View File
@@ -3,7 +3,7 @@ import { ReqPage } from '.';
export namespace Backup {
export interface SearchWithType extends ReqPage {
type: string;
name: string;
info: string;
}
export interface BackupOption {
id: number;
@@ -162,7 +162,7 @@ const search = async () => {
page: paginationConfig.currentPage,
pageSize: paginationConfig.pageSize,
type: paginationConfig.type,
name: paginationConfig.name,
info: paginationConfig.name,
};
loading.value = true;
await searchBackup(params)