chore: 异常调试
This commit is contained in:
		
							parent
							
								
									1c6ac05f16
								
							
						
					
					
						commit
						8f14c9b2df
					
				| @ -21,9 +21,9 @@ const routes: Array<RouteRecordRaw> = [ | |||||||
|       { |       { | ||||||
|         path: 'designer', |         path: 'designer', | ||||||
|         name: `${moduleName}-designer`, |         name: `${moduleName}-designer`, | ||||||
|  |         keepAlive: false, | ||||||
|         meta: { |         meta: { | ||||||
|           title: '低代码编辑器', |           title: '低代码编辑器', | ||||||
|           keepAlive: false, |  | ||||||
|           icon: 'ant-design:edit-outlined', |           icon: 'ant-design:edit-outlined', | ||||||
|         }, |         }, | ||||||
|         component: () => { |         component: () => { | ||||||
| @ -39,26 +39,24 @@ const routes: Array<RouteRecordRaw> = [ | |||||||
|       { |       { | ||||||
|         path: 'y-code-v1', |         path: 'y-code-v1', | ||||||
|         name: `${moduleName}-y-code-v1`, |         name: `${moduleName}-y-code-v1`, | ||||||
|  |         keepAlive: true, | ||||||
|         meta: { |         meta: { | ||||||
|           title: '悦码 1.0', |           title: '悦码 1.0', | ||||||
|           keepAlive: false, |  | ||||||
|           icon: 'ant-design:delete-outlined', |           icon: 'ant-design:delete-outlined', | ||||||
|  |           app: { | ||||||
|  |             url: VITE_V1_URL, | ||||||
|  |             name: 'y-code-v1', | ||||||
|  |             degrade: true, | ||||||
|  |           }, | ||||||
|         }, |         }, | ||||||
|         component: () => { |         component: () => { | ||||||
|           try { |  | ||||||
|           const userStore = useUserStore(); |           const userStore = useUserStore(); | ||||||
|           return h(RendererAdapter, { |           return h(RendererAdapter, { | ||||||
|             url: VITE_V1_URL, |             url: VITE_V1_URL, | ||||||
|             name: 'y-code-v1', |             name: 'y-code-v1', | ||||||
|             accessToken: userStore.token, |             accessToken: userStore.token, | ||||||
|               // sync: true,
 |  | ||||||
|               // alive: true,
 |  | ||||||
|             degrade: true, |             degrade: true, | ||||||
|           }); |           }); | ||||||
|           } catch (error) { |  | ||||||
|             console.error(error); |  | ||||||
|             return null; |  | ||||||
|           } |  | ||||||
|         }, |         }, | ||||||
|       }, |       }, | ||||||
|     ], |     ], | ||||||
|  | |||||||
| @ -54,16 +54,14 @@ const routes: Array<RouteRecordRaw> = [ | |||||||
|         }, |         }, | ||||||
|         component: () => { |         component: () => { | ||||||
|           const userStore = useUserStore(); |           const userStore = useUserStore(); | ||||||
|           return Promise.resolve( |           return h(RendererAdapter, { | ||||||
|             h(RendererAdapter, { |  | ||||||
|             url: VITE_RENDERER_URL, |             url: VITE_RENDERER_URL, | ||||||
|             name: 'y-code-platform-project-DSL-file-list', |             name: 'y-code-platform-project-DSL-file-list', | ||||||
|             applicationId: LOW_CODE_APPLICATION_ID, |             applicationId: LOW_CODE_APPLICATION_ID, | ||||||
|             projectId: LOW_CODE_PROJECT_ID, |             projectId: LOW_CODE_PROJECT_ID, | ||||||
|             fileId: '7pftwojzu', |             fileId: '7pftwojzu', | ||||||
|             accessToken: userStore.token, |             accessToken: userStore.token, | ||||||
|             }), |           }); | ||||||
|           ); |  | ||||||
|         }, |         }, | ||||||
|       }, |       }, | ||||||
|     ], |     ], | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 wangxuefeng
						wangxuefeng