feat: 添加错误弹窗

This commit is contained in:
zhangds 2023-06-15 11:34:18 +08:00
parent ed0d712240
commit 27272c8992
1 changed files with 3 additions and 1 deletions

View File

@ -3,7 +3,7 @@ import {
searchPendingOrderByHash,
searchPendingOrderByKeys,
} from "@/assets/api.js";
import { Sweetalert } from "zent";
import { Sweetalert, Notify } from "zent";
// === 公用接口函数 ===
/**
@ -47,6 +47,8 @@ const commonSearchOrder = (data, apiType = 3) => {
res(1);
}
} else {
Notify.clear();
Notify.error(searchRes.message);
rej(searchRes);
}
});