feat: 大屏数据修改
parent
47221a93c1
commit
894e6820b2
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,43 @@
|
||||
import { MockMethod } from "vite-plugin-mock";
|
||||
import { serverListData } from "./pools/serverListData";
|
||||
import { modelListData } from "./pools/modelListData";
|
||||
import { fetchCurrPageByList } from "./utils/apiMock";
|
||||
|
||||
export default [
|
||||
{
|
||||
url: "/getServerBoxList",
|
||||
method: "post",
|
||||
response: req => {
|
||||
const { page, pageSize } = req.body;
|
||||
// console.log(req);
|
||||
return {
|
||||
...fetchCurrPageByList({
|
||||
...serverListData,
|
||||
data: {
|
||||
...serverListData.data,
|
||||
page,
|
||||
pageSize: pageSize || 10
|
||||
}
|
||||
})
|
||||
};
|
||||
}
|
||||
},
|
||||
{
|
||||
url: "/getModelBoxList",
|
||||
method: "post",
|
||||
response: req => {
|
||||
const { page, pageSize } = req.body;
|
||||
// console.log(req);
|
||||
return {
|
||||
...fetchCurrPageByList({
|
||||
...modelListData,
|
||||
data: {
|
||||
...modelListData.data,
|
||||
page,
|
||||
pageSize: pageSize || 10
|
||||
}
|
||||
})
|
||||
};
|
||||
}
|
||||
}
|
||||
] as MockMethod[];
|
Loading…
Reference in New Issue