提交 16d5bdba 编写于 作者: tony001's avatar tony001

update:更新路由文件

上级 c96d0878
......@@ -2,7 +2,7 @@ import { createRouter, createWebHashHistory } from 'vue-router';
const routes = [
{
path: "/apps/:app?",
path: "/app/:app?",
{{!-- beforeEnter: (to: any, from: any, next: any) => {
next();
}, --}}
......@@ -14,9 +14,6 @@ const routes = [
imgPath: "{{app.defaultPSAppIndexView.psSysImage.imagePath}}",
iconCls: "{{app.defaultPSAppIndexView.psSysImage.cssClass}}",
{{/if}}
parameters: [
{ pathName: "apps", parameterName: "app" },
],
requireAuth: {{#eq app.defaultPSAppIndexView.accUserMode 0}}false{{else}}{{#eq app.defaultPSAppIndexView.accUserMode 3}}false{{else}}true{{/eq}}{{/eq}},
},
component: () => import("@page/default/{{spinalCase app.defaultPSAppIndexView.codeName}}"),
......@@ -38,7 +35,7 @@ const routes = [
iconCls: "{{appView.psSysImage.cssClass}}",
{{/if}}
parameters: [
{ pathName: "apps", parameterName: "app" },
{ pathName: "app", parameterName: "app" },
{{#if appEntityResource.majorCodeName}}
{ pathName: "{{pluralize appEntityResource.majorCodeName}}", parameterName: "{{appEntityResource.majorCodeName}}" },
{{/if}}
......@@ -56,7 +53,7 @@ const routes = [
},
{
path: "/",
redirect: "/{{lowerCase app.defaultPSAppIndexView.codeName}}"
redirect: "/app/{{lowerCase app.codeName}}"
},
]
const router = createRouter({
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册