@steedos/service-pages 2.6.8-beta.11 → 2.6.8-beta.12
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.
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* @Author: baozhoutao@steedos.com
|
|
3
3
|
* @Date: 2022-06-02 17:45:15
|
|
4
4
|
* @LastEditors: baozhoutao@steedos.com
|
|
5
|
-
* @LastEditTime:
|
|
5
|
+
* @LastEditTime: 2024-02-29 11:45:03
|
|
6
6
|
* @Description:
|
|
7
7
|
-->
|
|
8
8
|
<html>
|
|
@@ -83,6 +83,7 @@
|
|
|
83
83
|
schema.data.context.tenantId = tenantId;
|
|
84
84
|
schema.data.context.userId = userId;
|
|
85
85
|
schema.data.context.authToken = authToken;
|
|
86
|
+
schema.data.context.user = <%- JSON.stringify(userSession) %>;
|
|
86
87
|
|
|
87
88
|
if (objectName && pageType === "record") {
|
|
88
89
|
const record = await axios.get(
|
|
@@ -117,11 +118,7 @@
|
|
|
117
118
|
JSON.stringify(data.data.AmisSchema, null, 4)
|
|
118
119
|
);
|
|
119
120
|
if (schema.data && typeof schema.data.context === 'object' ) {
|
|
120
|
-
delete schema.data.context
|
|
121
|
-
delete schema.data.context.tenantId;
|
|
122
|
-
delete schema.data.context.authToken;
|
|
123
|
-
delete schema.data.context.user;
|
|
124
|
-
delete schema.data.context.rootUrl;
|
|
121
|
+
delete schema.data.context
|
|
125
122
|
}
|
|
126
123
|
|
|
127
124
|
try {
|
|
@@ -56,6 +56,7 @@ router.get('/api/pageDesign', core.requireAuthentication, async function (req, r
|
|
|
56
56
|
userId: userSession.userId,
|
|
57
57
|
authToken: userSession.authToken,
|
|
58
58
|
pageId: req.query.pageId,
|
|
59
|
+
userSession: userSession
|
|
59
60
|
}
|
|
60
61
|
const options = {}
|
|
61
62
|
ejs.renderFile(filename, data, options, function(err, str){
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@steedos/service-pages",
|
|
3
|
-
"version": "2.6.8-beta.
|
|
3
|
+
"version": "2.6.8-beta.12",
|
|
4
4
|
"main": "package.service.js",
|
|
5
5
|
"scripts": {},
|
|
6
6
|
"license": "MIT",
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"publishConfig": {
|
|
9
9
|
"access": "public"
|
|
10
10
|
},
|
|
11
|
-
"gitHead": "
|
|
11
|
+
"gitHead": "ce7212134723d659ba57419a0fc718f43ce88dcc",
|
|
12
12
|
"dependencies": {
|
|
13
13
|
"ejs": "^3.1.8"
|
|
14
14
|
}
|