agilebuilder-ui 1.0.65 → 1.0.66

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agilebuilder-ui",
3
- "version": "1.0.65",
3
+ "version": "1.0.66",
4
4
  "type": "module",
5
5
  "private": false,
6
6
  "main": "./lib/super-ui.js",
@@ -93,19 +93,20 @@ service.interceptors.response.use(
93
93
  } else if (error.response.status === 403) {
94
94
  // ForbiddenException(403) 403没权限
95
95
  const message = getI18n().t('imatrixUIMessage.forbiddenException')
96
+ const serverConfig = window['$vueApp'].config.globalProperties
96
97
  let vnode
97
- if (Vue.prototype.forbiddenUser || Vue.prototype.forbiddenLinkUrl) {
98
+ if (serverConfig.forbiddenUser || serverConfig.forbiddenLinkUrl) {
98
99
  vnode = '<p><span>' + message + '</span>'
99
100
  // 请点击进行权限申请
100
101
  const forbiddenExceptionLinkUrlMsg = getI18n().t('imatrixUIMessage.forbiddenExceptionLinkUrl')
101
- if (Vue.prototype.forbiddenLinkUrl) {
102
- vnode += ',<a href="#" style="color: #1800ff;font-weight: bold;text-decoration:underline" onclick="window.open(\'' + Vue.prototype.forbiddenLinkUrl + '\')">' + forbiddenExceptionLinkUrlMsg + '</a>'
102
+ if (serverConfig.forbiddenLinkUrl) {
103
+ vnode += ',<a href="#" style="color: #1800ff;font-weight: bold;text-decoration:underline" onclick="window.open(\'' + serverConfig.forbiddenLinkUrl + '\')">' + forbiddenExceptionLinkUrlMsg + '</a>'
103
104
  }
104
- if (Vue.prototype.forbiddenUser) {
105
+ if (serverConfig.forbiddenUser) {
105
106
  // 如有疑问请联系
106
107
  const forbiddenExceptionLinkUserMsg = getI18n().t('imatrixUIMessage.forbiddenExceptionLinkUser')
107
108
  vnode += '<span>'
108
- const forbiddenUserHtml = ',' + forbiddenExceptionLinkUserMsg + '<span style="color: #1800ff;"> ' + Vue.prototype.forbiddenUser + '</span>'
109
+ const forbiddenUserHtml = ',' + forbiddenExceptionLinkUserMsg + '<span style="color: #1800ff;"> ' + serverConfig.forbiddenUser + '</span>'
109
110
  let contactUrlHtml
110
111
  if (!window._clickForbiddenUser) {
111
112
  contactUrlHtml = forbiddenUserHtml
@@ -116,7 +117,7 @@ service.interceptors.response.use(
116
117
  // alert(linkUser)
117
118
  // }
118
119
  // </script>
119
- contactUrlHtml = '<a href="#" onclick="window._clickForbiddenUser(\'' + Vue.prototype.forbiddenUser + '\');return false">' + forbiddenUserHtml + '</a>'
120
+ contactUrlHtml = '<a href="#" onclick="window._clickForbiddenUser(\'' + serverConfig.forbiddenUser + '\');return false">' + forbiddenUserHtml + '</a>'
120
121
  }
121
122
  vnode += '</span>'
122
123
  vnode += contactUrlHtml