refactor: ♻️ cURD的列表数据模拟网络延迟

This commit is contained in:
cshaptx4869
2024-04-26 21:56:02 +08:00
parent 2b6a210855
commit e5fdf3e23b

View File

@@ -3,6 +3,7 @@ const contentConfig = {
indexAction: function (data: any) { indexAction: function (data: any) {
console.log("index", data); console.log("index", data);
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
setTimeout(() => {
resolve({ resolve({
code: "00000", code: "00000",
data: { data: {
@@ -40,6 +41,7 @@ const contentConfig = {
}, },
msg: "一切ok", msg: "一切ok",
}); });
}, 800);
}); });
}, },
deleteAction: function (id: string) { deleteAction: function (id: string) {