imatrix-ui 2.9.66-dw → 2.9.67-dw
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 +12 -2
package/package.json
CHANGED
package/src/utils/request.js
CHANGED
|
@@ -89,13 +89,23 @@ service.interceptors.response.use(
|
|
|
89
89
|
if (Vue.prototype.forbiddenUser || Vue.prototype.forbiddenLinkUrl) {
|
|
90
90
|
vnode = '<p><span>' + message + '</span>'
|
|
91
91
|
// 请点击进行权限申请
|
|
92
|
-
|
|
92
|
+
let forbiddenExceptionLinkUrlMsg
|
|
93
93
|
if (Vue.prototype.forbiddenLinkUrl) {
|
|
94
|
+
forbiddenExceptionLinkUrlMsg = Vue.prototype.forbiddenLinkMsg
|
|
95
|
+
if (!forbiddenExceptionLinkUrlMsg) {
|
|
96
|
+
forbiddenExceptionLinkUrlMsg = getI18n().t('imatrixUIMessage.forbiddenExceptionLinkUrl')
|
|
97
|
+
}
|
|
94
98
|
vnode += ',<a href="#" style="color: #1800ff;font-weight: bold;text-decoration:underline" onclick="window.open(\'' + Vue.prototype.forbiddenLinkUrl + '\')">' + forbiddenExceptionLinkUrlMsg + '</a>'
|
|
99
|
+
} else if (Vue.prototype.forbiddenLinkMsg) {
|
|
100
|
+
forbiddenExceptionLinkUrlMsg = Vue.prototype.forbiddenLinkMsg
|
|
101
|
+
vnode += ',<a href="#" style="font-weight: bold;">' + forbiddenExceptionLinkUrlMsg + '</a>'
|
|
95
102
|
}
|
|
96
103
|
if (Vue.prototype.forbiddenUser) {
|
|
97
104
|
// 如有疑问请联系
|
|
98
|
-
|
|
105
|
+
let forbiddenExceptionLinkUserMsg = Vue.prototype.forbiddenUserMsg
|
|
106
|
+
if (!forbiddenExceptionLinkUserMsg) {
|
|
107
|
+
forbiddenExceptionLinkUserMsg = getI18n().t('imatrixUIMessage.forbiddenExceptionLinkUser')
|
|
108
|
+
}
|
|
99
109
|
vnode += '<span>'
|
|
100
110
|
const forbiddenUserHtml = ',' + forbiddenExceptionLinkUserMsg + '<span style="color: #1800ff;"> ' + Vue.prototype.forbiddenUser + '</span>'
|
|
101
111
|
let contactUrlHtml
|