@cqsjjb/jjb-react-admin-component 3.3.1-beta.14 → 3.3.1-beta.16
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/PhoneBox/index.js +5 -1
- package/package.json +1 -1
package/PhoneBox/index.js
CHANGED
|
@@ -78,7 +78,11 @@ export default props => {
|
|
|
78
78
|
// 获取预览地址
|
|
79
79
|
const getPreviewUrl = () => {
|
|
80
80
|
// 从url中解析出id
|
|
81
|
-
const
|
|
81
|
+
const url = new URL(iframeUrl);
|
|
82
|
+
const hash = url.hash.substring(1);
|
|
83
|
+
const queryString = hash.replace(/^\//, '');
|
|
84
|
+
const params = new URLSearchParams(queryString);
|
|
85
|
+
const id = params.get('sceneEngineId');
|
|
82
86
|
return http.Get(`/scene/engine/preview/url/${id}`);
|
|
83
87
|
};
|
|
84
88
|
|