提交 6591a538 编写于 作者: Shine-zwj's avatar Shine-zwj

update:更新路由

上级 5332268c
<script setup lang="ts">
// This starter template is using Vue 3 <script setup> SFCs
// Check out https://v3.vuejs.org/api/sfc-script-setup.html#sfc-script-setup
import { PlatformIndexView } from '@page/default/platform-index-view';
</script>
<template>
<PlatformIndexView :context="{}"/>
<router-view />
</template>
<style>
......
......@@ -164,17 +164,6 @@ export class MenuControl extends ControlBase {
*/
public menuClick(item: IParam) {
console.log(item);
// 测试代码
switch (item.name) {
case 'menuitem12':
this.router.push('/JobsInfoEditView')
break;
case 'menuitem13':
this.router.push('/JobsRegistryGridView')
break;
default:
break;
}
}
/**
......
......@@ -20,7 +20,7 @@ const routes = [
],
requireAuth: {{#eq app.defaultPSAppIndexView.accUserMode 0}}false{{else}}{{#eq app.defaultPSAppIndexView.accUserMode 3}}false{{else}}true{{/eq}}{{/eq}},
},
component: () => import("@page/{{#if app.defaultPSAppIndexView.pSAppDataEntity}}{{spinalCase app.defaultPSAppIndexView.pSAppDataEntity.codeName}}{{else}}default{{/if}}/{{spinalCase app.defaultPSAppIndexView.codeName}}"),
component: () => import("@page/{{#if app.defaultPSAppIndexView.pSAppDataEntity}}{{spinalCase app.defaultPSAppIndexView.pSAppDataEntity.codeName}}{{else}}default{{/if}}/{{spinalCase app.defaultPSAppIndexView.codeName}}/{{spinalCase app.defaultPSAppIndexView.codeName}}.vue"),
children: [
{{#each app.allPSAppViews as | appView |}}
{{!-- 实体视图 --}}
......@@ -47,7 +47,7 @@ const routes = [
resource: "{{entity.codeName.lowerCase}}",
requireAuth: false,
},
component: () => import("@page/{{#if appView.pSAppDataEntity}}{{spinalCase appView.pSAppDataEntity.codeName}}{{else}}default{{/if}}/{{spinalCase appView.codeName}}"),
component: () => import("@page/{{#if appView.pSAppDataEntity}}{{spinalCase appView.pSAppDataEntity.codeName}}{{else}}default{{/if}}/{{spinalCase appView.codeName}}/{{spinalCase appView.codeName}}.vue"),
},
{{/if}}
{{else}}
......@@ -71,7 +71,7 @@ const routes = [
resource: "{{entity.codeName.lowerCase}}",
requireAuth: false,
},
component: () => import("@page/{{#if appView.pSAppDataEntity}}{{spinalCase appView.pSAppDataEntity.codeName}}{{else}}default{{/if}}/{{spinalCase appView.codeName}}"),
component: () => import("@page/{{#if appView.pSAppDataEntity}}{{spinalCase appView.pSAppDataEntity.codeName}}{{else}}default{{/if}}/{{spinalCase appView.codeName}}/{{spinalCase appView.codeName}}.vue"),
},
{{/if}}
{{/if}}
......@@ -94,7 +94,7 @@ const routes = [
],
requireAuth: false,
},
component: () => import("@page/{{#if appView.pSAppDataEntity}}{{spinalCase appView.pSAppDataEntity.codeName}}{{else}}default{{/if}}/{{spinalCase appView.codeName}}"),
component: () => import("@page/{{#if appView.pSAppDataEntity}}{{spinalCase appView.pSAppDataEntity.codeName}}{{else}}default{{/if}}/{{spinalCase appView.codeName}}/{{spinalCase appView.codeName}}.vue"),
},
{{/neq}}
{{/if}}
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册