@ganwei-web/gw-base-components-plus 1.0.57 → 1.0.58
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.
|
@@ -52,13 +52,13 @@ export default {
|
|
|
52
52
|
}
|
|
53
53
|
},
|
|
54
54
|
methods: {
|
|
55
|
-
// 从
|
|
55
|
+
// 从 sessionStorage.configInfoData 读取预览服务域名,未配置时使用默认域名
|
|
56
56
|
getPreviewDomain() {
|
|
57
57
|
try {
|
|
58
|
-
const webConfig = JSON.parse(
|
|
59
|
-
return webConfig?.httpConfig?.configPreviewDomain || ''
|
|
58
|
+
const webConfig = JSON.parse(sessionStorage.getItem('configInfoData') || '{}')
|
|
59
|
+
return webConfig?.httpConfig?.configPreviewDomain || 'https://fileview.ganweicloud.com/'
|
|
60
60
|
} catch (e) {
|
|
61
|
-
return ''
|
|
61
|
+
return 'https://fileview.ganweicloud.com/'
|
|
62
62
|
}
|
|
63
63
|
},
|
|
64
64
|
// 预览:使用预览服务器打开文件
|