[improvement][headless-fe] route rebuild stash

This commit is contained in:
tristanliu
2024-11-23 17:23:16 +08:00
parent 46d64d78f3
commit 0edadd01eb
19 changed files with 735 additions and 183 deletions

View File

@@ -57,24 +57,81 @@ const ROUTES = [
},
{
path: '/model/',
component: './SemanticModel/DomainManager',
component: './SemanticModel/',
name: 'semanticModel',
envEnableList: [ENV_KEY.SEMANTIC],
routes: [
{
path: '/model/:domainId/:modelId',
path: '/model/:domainId',
component: './SemanticModel/DomainManager',
// name: 'semanticModel',
envEnableList: [ENV_KEY.SEMANTIC],
routes: [
{
path: '/model/:domainId/:menuKey',
component: './SemanticModel/DomainManager',
},
],
},
{
path: '/model/:domainId/:modelId/:menuKey',
component: './SemanticModel/DomainManager',
// name: 'semanticModel',
path: '/model/manager/:domainId/:modelId',
component: './SemanticModel/ModelManager',
envEnableList: [ENV_KEY.SEMANTIC],
routes: [
{
path: '/model/manager/:domainId/:modelId/:menuKey',
component: './SemanticModel/ModelManager',
},
],
},
// {
// path: '/model/:domainId/:modelId/:menuKey',
// component: './SemanticModel/DomainManager',
// envEnableList: [ENV_KEY.SEMANTIC],
// },
// {
// path: '/model/:domainId/:modelId/metric',
// component: './SemanticModel/components/ModelMetric',
// envEnableList: [ENV_KEY.SEMANTIC],
// routes: [
// {
// path: '/model/:domainId/:modelId/metric/list',
// component: './SemanticModel/components/ClassMetricTable',
// envEnableList: [ENV_KEY.SEMANTIC],
// },
// ],
// },
],
},
// {
// path: '/model/',
// component: './SemanticModel/DomainManager',
// name: 'semanticModel',
// envEnableList: [ENV_KEY.SEMANTIC],
// routes: [
// {
// path: '/model/:domainId/:modelId',
// component: './SemanticModel/DomainManager',
// envEnableList: [ENV_KEY.SEMANTIC],
// },
// {
// path: '/model/:domainId/:modelId/:menuKey',
// component: './SemanticModel/DomainManager',
// envEnableList: [ENV_KEY.SEMANTIC],
// },
// {
// path: '/model/:domainId/:modelId/metric',
// component: './SemanticModel/components/ModelMetric',
// envEnableList: [ENV_KEY.SEMANTIC],
// routes: [
// {
// path: '/model/:domainId/:modelId/metric/list',
// component: './SemanticModel/components/ClassMetricTable',
// envEnableList: [ENV_KEY.SEMANTIC],
// },
// ],
// },
// ],
// },
// {
// path: '/model/:domainId/:modelId/:menuKey',