| 
					
				 | 
			
			
				@@ -3,7 +3,7 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   <CADViewer class="w-100% h-100%" :height="height" /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 </template> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 <script lang="ts" setup> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-  import { onMounted, onUnmounted, watch } from 'vue'; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  import { onMounted, onUnmounted } from 'vue'; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   import { CADViewer, useCADViewer } from '/@/components/CADViewer'; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   import { downLoad } from '../fileDetail.api'; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   import { useRoute } from 'vue-router'; 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -24,7 +24,7 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     registHook('MKY_Open_File_Complete', () => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       unregistHook('MKY_Open_File_Complete'); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       const loading = message.loading('正在下载文件', 0); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      downLoad({ id }).then((res: Blob) => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      downLoad({ id, ifMine: initByRoute }).then((res: Blob) => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         processFile(new File([res], filename)) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           .then((path) => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             postMessage('MKY_Open_Mxweb', path); 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -44,9 +44,12 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   //   } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   // ); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  let initByRoute = false; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   onMounted(() => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     const route = useRoute(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     if (route.query.id && route.query.filename) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      initByRoute = true; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       // 通过 url query 指定文件 ID 的形式使用该组件 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       openFile(route.query.id as string, route.query.filename as string); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } else { 
			 |