agilebuilder-ui 1.0.89 → 1.0.90-temp2

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.
@@ -65,7 +65,7 @@ function getCurrentUserPermissionsBySystem(loginName, systemCode) {
65
65
  if(isMobileBrowser()){
66
66
  return getCurrentUserMobilePermissions(loginName)
67
67
  } else {
68
- if (!systemCode) {
68
+ if (!systemCode || systemCode+'' === 'null') {
69
69
  if (window.$vueApp.config.globalProperties.customSystem) {
70
70
  systemCode = window.$vueApp.config.globalProperties.customSystem
71
71
  } else {
@@ -12,9 +12,10 @@ export default {
12
12
  el.parentNode && el.parentNode.removeChild(el)
13
13
  }
14
14
  } else {
15
- throw new Error(
16
- `need permission1! Like v-permission="acs.department.save"`
17
- )
15
+ console.log( `need permission1! Like v-permission="acs.department.save"`)
16
+ // throw new Error(
17
+ // `need permission1! Like v-permission="acs.department.save"`
18
+ // )
18
19
  }
19
20
  },
20
21
  }
@@ -122,6 +122,10 @@ function setI18nFileVersion(version) {
122
122
  }
123
123
 
124
124
  function getI18nFileVersion() {
125
+ const version = window.localStorage.getItem('i18nFileVersion')
126
+ if (version === 'undefined' || version === 'null') {
127
+ return null
128
+ }
125
129
  return window.localStorage.getItem('i18nFileVersion')
126
130
  }
127
131