@moluoxixi/ajax-package 0.0.27 → 0.0.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/index.mjs +18 -3
- package/package.json +1 -1
package/es/index.mjs
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
"use strict";
|
|
3
3
|
try {
|
|
4
4
|
if (typeof document !== "undefined") {
|
|
5
|
-
if (!document.getElementById("
|
|
5
|
+
if (!document.getElementById("164b41d1-677b-4c78-84fd-e1396b9efac6")) {
|
|
6
6
|
var elementStyle = document.createElement("style");
|
|
7
|
-
elementStyle.id = "
|
|
7
|
+
elementStyle.id = "164b41d1-677b-4c78-84fd-e1396b9efac6";
|
|
8
8
|
elementStyle.appendChild(document.createTextNode("._root_11p33_1 .el-dialog__header {\n padding: 0 12px 12px;\n}\n\n._root_11p33_1 .el-dialog__body {\n border-top: 1px solid #e5e7eb;\n border-bottom: 1px solid #e5e7eb;\n padding: 0 12px;\n}\n\n._root_11p33_1 .el-dialog__footer {\n padding: 0 12px;\n}"));
|
|
9
9
|
document.head.appendChild(elementStyle);
|
|
10
10
|
}
|
|
@@ -7916,8 +7916,23 @@ const _BaseApi = class _BaseApi extends BaseHttpClient {
|
|
|
7916
7916
|
]);
|
|
7917
7917
|
(_a2 = this.messageInstance) == null ? void 0 : _a2.error({
|
|
7918
7918
|
message: messageVNode,
|
|
7919
|
-
duration: 5 * 1e3
|
|
7919
|
+
duration: 5 * 1e3,
|
|
7920
|
+
customClass: "system-error-message"
|
|
7921
|
+
// 添加自定义类名
|
|
7920
7922
|
});
|
|
7923
|
+
if (typeof document !== "undefined") {
|
|
7924
|
+
let styleElement = document.getElementById("system-error-message-style");
|
|
7925
|
+
if (!styleElement) {
|
|
7926
|
+
styleElement = document.createElement("style");
|
|
7927
|
+
styleElement.id = "system-error-message-style";
|
|
7928
|
+
document.head.appendChild(styleElement);
|
|
7929
|
+
}
|
|
7930
|
+
styleElement.textContent = `
|
|
7931
|
+
.system-error-message {
|
|
7932
|
+
z-index: 999999 !important;
|
|
7933
|
+
}
|
|
7934
|
+
`;
|
|
7935
|
+
}
|
|
7921
7936
|
}
|
|
7922
7937
|
handleBusinessError(code, message2) {
|
|
7923
7938
|
var _a2;
|