mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2024-09-20 23:55:58 +08:00
fix: 解决文件列表跳转每页条数限制不生效的问题 (#3570)
This commit is contained in:
parent
d95ec29de3
commit
ce3b841ca7
|
@ -499,11 +499,13 @@ const back = () => {
|
||||||
|
|
||||||
const jump = async (url: string) => {
|
const jump = async (url: string) => {
|
||||||
const oldUrl = req.path;
|
const oldUrl = req.path;
|
||||||
|
const oldPageSize = req.pageSize;
|
||||||
// reset search params before exec jump
|
// reset search params before exec jump
|
||||||
Object.assign(req, initData());
|
Object.assign(req, initData());
|
||||||
req.path = url;
|
req.path = url;
|
||||||
req.containSub = false;
|
req.containSub = false;
|
||||||
req.search = '';
|
req.search = '';
|
||||||
|
req.pageSize = oldPageSize;
|
||||||
let searchResult = await searchFile();
|
let searchResult = await searchFile();
|
||||||
|
|
||||||
globalStore.setLastFilePath(req.path);
|
globalStore.setLastFilePath(req.path);
|
||||||
|
|
Loading…
Reference in a new issue