From 17eee56cb12ccbd3cc4a41898275ff4bad0ce657 Mon Sep 17 00:00:00 2001 From: Surpriseplus <845948745@qq.com> Date: 星期二, 06 十二月 2022 16:31:50 +0800 Subject: [PATCH] 1 --- public/config/config.js | 3 +-- src/views/Synthesis/LeftMenu.vue | 9 +++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/public/config/config.js b/public/config/config.js index 847be17..6ec580e 100644 --- a/public/config/config.js +++ b/public/config/config.js @@ -7,8 +7,7 @@ var wnsUrl = 'http://192.168.20.39:9055/gisserver/wnsserver/beijingdaohang_wns'; //gisserver var gisServerUrl = 'http://192.168.20.39:9055/gisserver'; -//婕父=>缂栬緫鐗堟湰涓簍rue,鎵撳寘鐗堟湰涓篺alse, -var analyFlag = true; + //缁煎悎灞曠ず window.sceneConfig = { // sdk璁稿彲 diff --git a/src/views/Synthesis/LeftMenu.vue b/src/views/Synthesis/LeftMenu.vue index f6993be..b8def9e 100644 --- a/src/views/Synthesis/LeftMenu.vue +++ b/src/views/Synthesis/LeftMenu.vue @@ -689,9 +689,10 @@ window.sgworld.Analysis.setPointFly(); break; case 'c2': - var test = ''; - if (analyFlag == false) { - test = '/web'; + var url = window.location.href; + var testurl = ''; + if (url.indexOf('web') != -1) { + testurl = '/web'; } window.sgworld.Command.execute(2, 3, '', (data) => { data.showPoint = false; @@ -708,7 +709,7 @@ area: ['352px', '690px'], offset: 'r', skin: 'other-class', - content: test + '/SmartEarthSDK/Workers/path/Path.html', + content: testurl + '/SmartEarthSDK/Workers/path/Path.html', end: function () { PathAnimationData.fly && PathAnimationData.fly.exit(); }, -- Gitblit v1.9.3