@lambo-design/shared 1.0.0-beta.382 → 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 +17 -2
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
|
|
@@ -1319,7 +1334,7 @@ export const getOttCode = async () => {
|
|
|
1319
1334
|
return ott;
|
|
1320
1335
|
}
|
|
1321
1336
|
export const addOttCode = async (item) => {
|
|
1322
|
-
if (item && item.uri && item
|
|
1337
|
+
if (item && item.uri && isYqqh(item)) {
|
|
1323
1338
|
let ott = getOttCode();
|
|
1324
1339
|
if (ott) {
|
|
1325
1340
|
item.ott = ott;
|