@titaui/pc 1.7.6 → 1.7.7

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.
@@ -122,9 +122,17 @@ var Inform = function Inform(props) {
122
122
  }
123
123
  } else if (item.objUrl) {
124
124
  window.open(item.objUrl);
125
+ } else {
126
+ var reg = /href='.*?(?=')/g;
127
+ var url = '';
128
+ item.content.replace(reg, function ($0) {
129
+ url = $0.slice(6);
130
+ });
131
+
132
+ if (url) {
133
+ window.open(location.protocol + url, '_blank');
134
+ }
125
135
  }
126
-
127
- return;
128
136
  }
129
137
 
130
138
  var type = 'eReport'; // E-周报提醒消息合并
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@titaui/pc",
3
- "version": "1.7.6",
3
+ "version": "1.7.7",
4
4
  "nameCN": "",
5
5
  "description": "",
6
6
  "main": "lib/index.js",