component-shipinlv 2.0.11 → 2.0.12
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.
@@ -27,7 +27,8 @@ var VideoPublish = function VideoPublish(_ref) {
|
|
27
27
|
productType = _ref.productType,
|
28
28
|
apiUrl = _ref.apiUrl,
|
29
29
|
env = _ref.env,
|
30
|
-
clientIdentity = _ref.clientIdentity
|
30
|
+
clientIdentity = _ref.clientIdentity,
|
31
|
+
openLocalBrowser = _ref.openLocalBrowser;
|
31
32
|
var _useState = useState([]),
|
32
33
|
_useState2 = _slicedToArray(_useState, 2),
|
33
34
|
menuList = _useState2[0],
|
@@ -137,7 +138,8 @@ var VideoPublish = function VideoPublish(_ref) {
|
|
137
138
|
children: /*#__PURE__*/_jsx(VideoStudyPage, {
|
138
139
|
title: "\u53D1\u5E03\u529F\u80FD \xB7 \u89C6\u9891\u6559\u7A0B",
|
139
140
|
productType: "video-publish",
|
140
|
-
env: env
|
141
|
+
env: env,
|
142
|
+
openLocalBrowser: openLocalBrowser
|
141
143
|
})
|
142
144
|
}];
|
143
145
|
var _onMenu = function _onMenu(key) {
|
@@ -14,7 +14,7 @@ var VideoStudyPage = function VideoStudyPage(_ref) {
|
|
14
14
|
subtitle = _ref.subtitle,
|
15
15
|
productType = _ref.productType,
|
16
16
|
env = _ref.env,
|
17
|
-
|
17
|
+
openLocalBrowser = _ref.openLocalBrowser;
|
18
18
|
var _useState = useState([]),
|
19
19
|
_useState2 = _slicedToArray(_useState, 2),
|
20
20
|
listData = _useState2[0],
|
@@ -51,8 +51,8 @@ var VideoStudyPage = function VideoStudyPage(_ref) {
|
|
51
51
|
className: "itemCard",
|
52
52
|
onClick: function onClick() {
|
53
53
|
Tool.toast('已经开始下载');
|
54
|
-
if (typeof
|
55
|
-
|
54
|
+
if (typeof openLocalBrowser == 'function') {
|
55
|
+
openLocalBrowser(items.videoUrl);
|
56
56
|
} else {
|
57
57
|
Tool.openWindow(items.videoUrl);
|
58
58
|
}
|