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 +1 -1
- package/src/utils/request.js +7 -6
package/package.json
CHANGED
package/src/utils/request.js
CHANGED
|
@@ -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 (
|
|
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 (
|
|
102
|
-
vnode += ',<a href="#" style="color: #1800ff;font-weight: bold;text-decoration:underline" onclick="window.open(\'' +
|
|
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 (
|
|
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;"> ' +
|
|
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(\'' +
|
|
120
|
+
contactUrlHtml = '<a href="#" onclick="window._clickForbiddenUser(\'' + serverConfig.forbiddenUser + '\');return false">' + forbiddenUserHtml + '</a>'
|
|
120
121
|
}
|
|
121
122
|
vnode += '</span>'
|
|
122
123
|
vnode += contactUrlHtml
|