@zhubangyun/lowcode-core 5.4.101 → 5.4.102
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/utils/cache/index.js
CHANGED
|
@@ -2,9 +2,9 @@ import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
|
|
|
2
2
|
import _inheritsLoose from "@babel/runtime/helpers/inheritsLoose";
|
|
3
3
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
4
4
|
import { SingletonInstanceMap } from "../common/SingletonInstanceMap";
|
|
5
|
-
import { request } from "../api";
|
|
6
5
|
import { RestFormApi } from "../form/form.api";
|
|
7
6
|
import { handleFormSchema } from "./schema";
|
|
7
|
+
import { apiRequest } from "../api";
|
|
8
8
|
export var SchemaCache = /*#__PURE__*/function (_SingletonInstanceMap) {
|
|
9
9
|
function SchemaCache() {
|
|
10
10
|
return _SingletonInstanceMap.apply(this, arguments) || this;
|
|
@@ -19,7 +19,7 @@ export var SchemaCache = /*#__PURE__*/function (_SingletonInstanceMap) {
|
|
|
19
19
|
case 0:
|
|
20
20
|
mock = options.mock, pageId = options.pageId;
|
|
21
21
|
_context.next = 3;
|
|
22
|
-
return
|
|
22
|
+
return apiRequest.get("pages/" + pageId + "/schema", {
|
|
23
23
|
params: {
|
|
24
24
|
mock: mock
|
|
25
25
|
}
|
package/lib/utils/cache/index.js
CHANGED
|
@@ -7,9 +7,9 @@ var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"))
|
|
|
7
7
|
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
8
8
|
var _inheritsLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/inheritsLoose"));
|
|
9
9
|
var _SingletonInstanceMap3 = require("../common/SingletonInstanceMap");
|
|
10
|
-
var _api = require("../api");
|
|
11
10
|
var _form = require("../form/form.api");
|
|
12
11
|
var _schema = require("./schema");
|
|
12
|
+
var _api = require("../api");
|
|
13
13
|
var SchemaCache = exports.SchemaCache = /*#__PURE__*/function (_SingletonInstanceMap) {
|
|
14
14
|
function SchemaCache() {
|
|
15
15
|
return _SingletonInstanceMap.apply(this, arguments) || this;
|
|
@@ -24,7 +24,7 @@ var SchemaCache = exports.SchemaCache = /*#__PURE__*/function (_SingletonInstanc
|
|
|
24
24
|
case 0:
|
|
25
25
|
mock = options.mock, pageId = options.pageId;
|
|
26
26
|
_context.next = 3;
|
|
27
|
-
return _api.
|
|
27
|
+
return _api.apiRequest.get("pages/" + pageId + "/schema", {
|
|
28
28
|
params: {
|
|
29
29
|
mock: mock
|
|
30
30
|
}
|