ls-pro-common 3.1.43 → 3.1.44
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.
|
@@ -42,10 +42,11 @@ var ViewDocment = function ViewDocment(props) {
|
|
|
42
42
|
href = href + (href.includes('?') ? '&' : '?') + 'fullfilename=' + filename;
|
|
43
43
|
}
|
|
44
44
|
var doc = base64Encode(href);
|
|
45
|
+
var exportUrl = getCache('exportUrl');
|
|
45
46
|
// 如果是生产环境,走下载域名,其它环境走原来域名
|
|
46
47
|
var domain = '';
|
|
47
|
-
if (
|
|
48
|
-
domain =
|
|
48
|
+
if (exportUrl && exportUrl.includes('//')) {
|
|
49
|
+
domain = exportUrl;
|
|
49
50
|
}
|
|
50
51
|
return domain + '/lesoon/lesoon-kkfileview-api/onlinePreview?url=' + doc;
|
|
51
52
|
}, [url]);
|
|
@@ -42,10 +42,11 @@ var ViewDocment = function ViewDocment(props) {
|
|
|
42
42
|
href = href + (href.includes('?') ? '&' : '?') + 'fullfilename=' + filename;
|
|
43
43
|
}
|
|
44
44
|
var doc = base64Encode(href);
|
|
45
|
+
var exportUrl = getCache('exportUrl');
|
|
45
46
|
// 如果是生产环境,走下载域名,其它环境走原来域名
|
|
46
47
|
var domain = '';
|
|
47
|
-
if (
|
|
48
|
-
domain =
|
|
48
|
+
if (exportUrl && exportUrl.includes('//')) {
|
|
49
|
+
domain = exportUrl;
|
|
49
50
|
}
|
|
50
51
|
return domain + '/lesoon/lesoon-kkfileview-api/onlinePreview?url=' + doc;
|
|
51
52
|
}, [url]);
|