From 6f978712c408d23308df95441c6a7e209d6ff733 Mon Sep 17 00:00:00 2001
From: tony001 <228939628@qq.com>
Date: Wed, 26 Aug 2020 16:19:11 +0800
Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E7=8E=AF=E5=A2=83=E9=85=8D?=
 =?UTF-8?q?=E7=BD=AEmos=E8=B7=B3=E8=BD=AC?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 public/environments/environment.js          | 4 +++-
 src/utils/studio-action/StudioActionUtil.ts | 8 ++++++--
 2 files changed, 9 insertions(+), 3 deletions(-)

diff --git a/public/environments/environment.js b/public/environments/environment.js
index 741313a..6d7cfb1 100644
--- a/public/environments/environment.js
+++ b/public/environments/environment.js
@@ -7,8 +7,10 @@ window.Environment = {
     isAppMode:true,
     // 鏄惁寮€鍚潈闄愯璇�
     enablePermissionValid:false,
+    // 鎵撳紑鐩爣宸ュ叿锛屽彲閫夊弬鏁帮細sln銆乵os
+    debugOpenMode:'mos',
     // 閰嶇疆骞冲彴鍦板潃
-    StudioUrl: "http://172.16.170.145/slnstudio/",
+    StudioUrl: "http://172.16.170.145/mos/",
     // 涓績鏍囪瘑
     SlnId: "B4BF5C84-D020-4D9A-A986-8FA4FD72816C",
     // 绯荤粺鏍囪瘑
diff --git a/src/utils/studio-action/StudioActionUtil.ts b/src/utils/studio-action/StudioActionUtil.ts
index 5d27df2..77eebe6 100644
--- a/src/utils/studio-action/StudioActionUtil.ts
+++ b/src/utils/studio-action/StudioActionUtil.ts
@@ -119,8 +119,12 @@ export class StudioActionUtil {
                 }, '*');
                 Vue.prototype.$message.warning('璇峰湪宸叉墦寮€鐨勯厤缃钩鍙版煡鐪�!');
             } else {
-                console.log(`${Environment.StudioUrl}?ov=${JSON.stringify(params)}#/common_slnindex/srfkeys=${Environment.SlnId}/sysdesign_psdevslnsysmodeltreeexpview/srfkey=${Environment.SysId}`);
-                this.studioWin = window.open(`${Environment.StudioUrl}?ov=${encodeURIComponent(JSON.stringify(params))}#/common_slnindex/srfkeys=${Environment.SlnId}/sysdesign_psdevslnsysmodeltreeexpview/srfkey=${Environment.SysId}`, '_blank');
+                if(Environment.debugOpenMode === 'sln'){
+                    console.log("鎵撳紑sln鏈敮鎸�");
+                    // this.studioWin = window.open(`${Environment.StudioUrl}?ov=${encodeURIComponent(JSON.stringify(params))}#/common_slnindex/srfkeys=${Environment.SlnId}/sysdesign_psdevslnsysmodeltreeexpview/srfkey=${Environment.SysId}`, '_blank');
+                }else{
+                    this.studioWin = window.open(`${Environment.StudioUrl}?ov=${encodeURIComponent(JSON.stringify(params))}#/common_mosindex/srfkeys=${Environment.SysId}`, '_blank');
+                }
             }
         }
     }
-- 
2.21.0