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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "imatrix-ui",
3
- "version": "2.9.66-dw",
3
+ "version": "2.9.67-dw",
4
4
  "description": "前端组件库:表格、表单、组织结构树等",
5
5
  "main": "lib/super-ui.umd.min.js",
6
6
  "private": false,
@@ -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
- const forbiddenExceptionLinkUrlMsg = getI18n().t('imatrixUIMessage.forbiddenExceptionLinkUrl')
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
- const forbiddenExceptionLinkUserMsg = getI18n().t('imatrixUIMessage.forbiddenExceptionLinkUser')
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