@lambo-design/shared 1.0.0-beta.203 → 1.0.0-beta.205
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/config/config.js +1 -0
- package/config/themes/atrovirens/atrovirens.css +563 -563
- package/config/themes/blue/blue.css +563 -563
- package/config/themes/blue-white/blue-white.css +563 -563
- package/config/themes/blue-white-tight/blue-white-tight.css +564 -564
- package/config/themes/deep/deep.css +563 -563
- package/config/themes/default/default.css +563 -563
- package/config/themes/eap/eap.css +563 -563
- package/config/themes/gold/gold.css +563 -563
- package/config/themes/lime/lime.css +563 -563
- package/config/themes/orange/orange.css +563 -563
- package/config/themes/red/red.css +563 -563
- package/package.json +1 -1
- package/utils/platform.js +20 -5
package/package.json
CHANGED
package/utils/platform.js
CHANGED
|
@@ -748,11 +748,12 @@ export const isMobileApp = (app) => {
|
|
|
748
748
|
* @param appList
|
|
749
749
|
* @returns {*[]}
|
|
750
750
|
*/
|
|
751
|
-
export const getPCAppList = (appList) => {
|
|
751
|
+
export const getPCAppList = (appList,filterCenter = false) => {
|
|
752
752
|
let finalList = []
|
|
753
753
|
if(appList) {
|
|
754
754
|
for (let app of appList) {
|
|
755
|
-
if (!isMobileApp(app))
|
|
755
|
+
if ((!isMobileApp(app) && filterCenter && isCenterApp(app))
|
|
756
|
+
|| (!isMobileApp(app) && !filterCenter)) {
|
|
756
757
|
finalList.push(app);
|
|
757
758
|
}
|
|
758
759
|
}
|
|
@@ -765,17 +766,31 @@ export const getPCAppList = (appList) => {
|
|
|
765
766
|
* @param appList
|
|
766
767
|
* @returns {*[]}
|
|
767
768
|
*/
|
|
768
|
-
export const getMobileAppList = (appList) => {
|
|
769
|
+
export const getMobileAppList = (appList,filterCenter= false) => {
|
|
769
770
|
let finalList = []
|
|
770
771
|
if(appList) {
|
|
771
772
|
for (let app of appList) {
|
|
772
|
-
if (isMobileApp(app))
|
|
773
|
+
if ((isMobileApp(app) && filterCenter && isCenterApp(app))
|
|
774
|
+
|| (isMobileApp(app) && !filterCenter)) {
|
|
773
775
|
finalList.push(app);
|
|
774
776
|
}
|
|
775
777
|
}
|
|
776
778
|
}
|
|
777
779
|
return finalList;
|
|
778
780
|
}
|
|
781
|
+
/**
|
|
782
|
+
* 判断应用是否门户应用
|
|
783
|
+
* @param menu
|
|
784
|
+
*/
|
|
785
|
+
export const isCenterApp = (app) => {
|
|
786
|
+
if (app.extendProps && app.extendProps.is_center_app && app.extendProps.is_center_app == '1') {
|
|
787
|
+
return true;
|
|
788
|
+
}
|
|
789
|
+
if (app.setting && app.setting.is_center_app && app.setting.is_center_app == '1') {
|
|
790
|
+
return true;
|
|
791
|
+
}
|
|
792
|
+
return false;
|
|
793
|
+
}
|
|
779
794
|
|
|
780
795
|
/**
|
|
781
796
|
* 获取一级菜单作为顶级导航
|
|
@@ -1214,7 +1229,7 @@ export const changeSystemInfo = async (systemInfo) => {
|
|
|
1214
1229
|
let systemForm = null
|
|
1215
1230
|
if (split[0]) {
|
|
1216
1231
|
let res = await ajax.get(config.upmsServerContext + '/anon/system/themeLineList?themeId=' + split[0])
|
|
1217
|
-
if (res.data.code ==
|
|
1232
|
+
if (res.data.code == 1) {
|
|
1218
1233
|
systemForm = res.data.data[0]
|
|
1219
1234
|
}
|
|
1220
1235
|
}
|