|
@@ -331,7 +331,8 @@ function getsqlData() {
|
|
|
sdkInstance.sceneRenderer.scene.add(childMeshTmp)
|
|
|
}
|
|
|
};
|
|
|
- setTimeout(()=>
|
|
|
+ if (window.location.href.indexOf("ordinaryPage") !== -1) {
|
|
|
+ setTimeout(()=>
|
|
|
{
|
|
|
var benchPosList = [];
|
|
|
for (var item of result) {
|
|
@@ -350,6 +351,8 @@ function getsqlData() {
|
|
|
window.showBenchPos(benchPosList);
|
|
|
},2000
|
|
|
)
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
})
|
|
|
});
|
|
@@ -660,11 +663,14 @@ export function uwbMain(modelWidth, modelHeight, finalMode, callback) {
|
|
|
setTimeout(() => {
|
|
|
window.sdkInstance.emit("endLoading", finalMode);
|
|
|
window.sdkInstance.emit("modeChange", null, finalMode);
|
|
|
- window.sdkInstance.changeMode(finalMode);
|
|
|
- setTimeout(() => {
|
|
|
- var container = document.getElementById("ordinary-map")
|
|
|
- container.style.opacity = 1;
|
|
|
- }, 500)
|
|
|
+ if (window.location.href.indexOf("ordinaryPage") !== -1) {
|
|
|
+ window.sdkInstance.changeMode(finalMode);
|
|
|
+ setTimeout(() => {
|
|
|
+ var container = document.getElementById("ordinary-map")
|
|
|
+ container.style.opacity = 1;
|
|
|
+ }, 500)
|
|
|
+ }
|
|
|
+
|
|
|
}, 3000)
|
|
|
sdkInstance.on("endLoading", (mode) => {
|
|
|
// debugger
|