@steedos/service-ui 2.5.0-beta.8 → 2.5.0
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/package.json +5 -5
- package/public/steedos-init.js +7 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@steedos/service-ui",
|
|
3
|
-
"version": "2.5.0
|
|
3
|
+
"version": "2.5.0",
|
|
4
4
|
"main": "package.service.js",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"steedos"
|
|
@@ -11,9 +11,9 @@
|
|
|
11
11
|
"description": "steedos package",
|
|
12
12
|
"repository": {},
|
|
13
13
|
"dependencies": {
|
|
14
|
-
"@steedos/core": "2.5.0
|
|
15
|
-
"@steedos/i18n": "2.5.0
|
|
16
|
-
"@steedos/objectql": "2.5.0
|
|
14
|
+
"@steedos/core": "2.5.0",
|
|
15
|
+
"@steedos/i18n": "2.5.0",
|
|
16
|
+
"@steedos/objectql": "2.5.0",
|
|
17
17
|
"express": "4.18.1"
|
|
18
18
|
},
|
|
19
19
|
"license": "MIT",
|
|
@@ -21,5 +21,5 @@
|
|
|
21
21
|
"publishConfig": {
|
|
22
22
|
"access": "public"
|
|
23
23
|
},
|
|
24
|
-
"gitHead": "
|
|
24
|
+
"gitHead": "c4b366d1366ab52eb53da1a3ff4a80b16fd73cc0"
|
|
25
25
|
}
|
package/public/steedos-init.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* @Author: baozhoutao@steedos.com
|
|
3
3
|
* @Date: 2023-02-26 15:22:12
|
|
4
4
|
* @LastEditors: baozhoutao@steedos.com
|
|
5
|
-
* @LastEditTime: 2023-
|
|
5
|
+
* @LastEditTime: 2023-04-27 13:22:22
|
|
6
6
|
* @Description:
|
|
7
7
|
*/
|
|
8
8
|
try {
|
|
@@ -142,10 +142,16 @@ try {
|
|
|
142
142
|
};
|
|
143
143
|
|
|
144
144
|
window.getAppsSync = () => {
|
|
145
|
+
const isMobile = Steedos.isMobile()
|
|
146
|
+
let data = { };
|
|
147
|
+
if(isMobile){
|
|
148
|
+
data.mobile = isMobile
|
|
149
|
+
}
|
|
145
150
|
const url = "/service/api/apps/menus";
|
|
146
151
|
const apps = Steedos.authRequest(url, {
|
|
147
152
|
type: "GET",
|
|
148
153
|
async: false,
|
|
154
|
+
data
|
|
149
155
|
});
|
|
150
156
|
return apps;
|
|
151
157
|
};
|