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

update:更新路由

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