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