@lambo-design/shared 1.0.0-beta.284 → 1.0.0-beta.285
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 +1 -1
- package/utils/platform.js +4 -0
package/package.json
CHANGED
package/utils/platform.js
CHANGED
|
@@ -5,6 +5,7 @@ import systemLogo from '../styles/image/inspur.png';
|
|
|
5
5
|
import {changeByThemeKey, changeThemeByThemeId} from "./theme";
|
|
6
6
|
import ajax from "./ajax";
|
|
7
7
|
import qs from 'qs'
|
|
8
|
+
import {disableRightClick} from "./context-menu";
|
|
8
9
|
|
|
9
10
|
export let TOKEN_KEY = "lambo-token"
|
|
10
11
|
|
|
@@ -1304,6 +1305,9 @@ export const changeSystemInfo = async (systemInfo) => {
|
|
|
1304
1305
|
systemInfo.theme = localStorage.getItem('theme')
|
|
1305
1306
|
}
|
|
1306
1307
|
changeByThemeKey(systemInfo.theme)
|
|
1308
|
+
if(systemInfo.contextmenu === '0'){
|
|
1309
|
+
disableRightClick()
|
|
1310
|
+
}
|
|
1307
1311
|
if (localStorage.getItem('themeIdCurrent')) {
|
|
1308
1312
|
systemInfo.showTheme = localStorage.getItem('themeIdCurrent')
|
|
1309
1313
|
}
|