@lambo-design/shared 1.0.0-beta.381 → 1.0.0-beta.383
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 +3 -3
- package/utils/platform.js +33 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lambo-design/shared",
|
|
3
|
-
"version": "1.0.0-beta.
|
|
3
|
+
"version": "1.0.0-beta.383",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"author": "lambo",
|
|
@@ -26,8 +26,8 @@
|
|
|
26
26
|
"nanoid": "^3.3.7",
|
|
27
27
|
"node-rsa": "^1.1.1",
|
|
28
28
|
"qs": "^6.11.0",
|
|
29
|
-
"@lambo-design/xlsx": "^1.0.0-beta.
|
|
30
|
-
"@lambo-design/xlsx
|
|
29
|
+
"@lambo-design/xlsx-style": "^1.0.0-beta.9",
|
|
30
|
+
"@lambo-design/xlsx": "^1.0.0-beta.2"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"vue": "^2.6.12"
|
package/utils/platform.js
CHANGED
|
@@ -779,7 +779,22 @@ export const isOpenBlank = (menu) => {
|
|
|
779
779
|
}
|
|
780
780
|
return false;
|
|
781
781
|
}
|
|
782
|
-
|
|
782
|
+
export const isYqqh = (menu) => {
|
|
783
|
+
let extendProps = {}
|
|
784
|
+
if (menu && menu.meta && menu.meta.data && menu.meta.data.extension) {
|
|
785
|
+
extendProps = JSON.parse(menu.meta.data.extension)
|
|
786
|
+
}
|
|
787
|
+
if (menu && menu.extension) {
|
|
788
|
+
extendProps = JSON.parse(menu.extension)
|
|
789
|
+
}
|
|
790
|
+
if (extendProps && extendProps.is_yqqh && extendProps.is_yqqh == '1') {
|
|
791
|
+
return true;
|
|
792
|
+
}
|
|
793
|
+
if (extendProps && extendProps.isYqqh && extendProps.isYqqh == '1') {
|
|
794
|
+
return true;
|
|
795
|
+
}
|
|
796
|
+
return false;
|
|
797
|
+
}
|
|
783
798
|
/**
|
|
784
799
|
* 判断应用是否为移动应用
|
|
785
800
|
* @param app
|
|
@@ -1310,6 +1325,23 @@ export const buildMenuUri = (item,ssoToken,ssoid) => {
|
|
|
1310
1325
|
}
|
|
1311
1326
|
return href
|
|
1312
1327
|
}
|
|
1328
|
+
export const getOttCode = async () => {
|
|
1329
|
+
let ott = null;
|
|
1330
|
+
let resp = await ajax.post(config.upmsServerContext + "/manage/auth/code");
|
|
1331
|
+
if (resp.data && resp.data.code && resp.data.code == 1) {
|
|
1332
|
+
ott = resp.data.data;
|
|
1333
|
+
}
|
|
1334
|
+
return ott;
|
|
1335
|
+
}
|
|
1336
|
+
export const addOttCode = async (item) => {
|
|
1337
|
+
if (item && item.uri && isYqqh(item)) {
|
|
1338
|
+
let ott = getOttCode();
|
|
1339
|
+
if (ott) {
|
|
1340
|
+
item.ott = ott;
|
|
1341
|
+
}
|
|
1342
|
+
}
|
|
1343
|
+
return item;
|
|
1344
|
+
}
|
|
1313
1345
|
/**
|
|
1314
1346
|
* 给query添加时间戳
|
|
1315
1347
|
*/
|