@moluoxixi/ajax-package 0.0.52 → 0.0.53

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.
Files changed (2) hide show
  1. package/es/index.mjs +12 -3
  2. 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("4c7bf6b0-7b05-4c2b-a8dd-12bdc93f67e9")) {
5
+ if (!document.getElementById("0166050c-669a-4845-8c7b-200d305364ca")) {
6
6
  var elementStyle = document.createElement("style");
7
- elementStyle.id = "4c7bf6b0-7b05-4c2b-a8dd-12bdc93f67e9";
7
+ elementStyle.id = "0166050c-669a-4845-8c7b-200d305364ca";
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
  }
@@ -8529,6 +8529,15 @@ const SystemErrorDialog = defineComponent({
8529
8529
  { label: "请求URL路径", value: props.requestUrl },
8530
8530
  { label: "链路ID", value: props.traceId }
8531
8531
  ]);
8532
+ const baseApiObj = new BaseApi({
8533
+ baseURL: "/ompBase",
8534
+ responseFields: {
8535
+ code: "statusCode",
8536
+ message: "message",
8537
+ data: "object"
8538
+ },
8539
+ enableSystemErrorDialog: false
8540
+ });
8532
8541
  const { baseApi } = props;
8533
8542
  function handleClose() {
8534
8543
  emit("close");
@@ -8555,7 +8564,7 @@ const SystemErrorDialog = defineComponent({
8555
8564
  ElMessage(finalOptions);
8556
8565
  }
8557
8566
  async function handleReport() {
8558
- await baseApi.post("/upgGlobalExceptionReports", {
8567
+ await baseApiObj.post("/upgGlobalExceptionReports", {
8559
8568
  username: userInfo.value.userName,
8560
8569
  userId: userInfo.value.userId,
8561
8570
  workDeptName: userInfo.value.deptName,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@moluoxixi/ajax-package",
3
- "version": "0.0.52",
3
+ "version": "0.0.53",
4
4
  "description": "AjaxPackage 组件",
5
5
  "sideEffects": [
6
6
  "*.css",