提交 8aa372b1 编写于 作者: tony001's avatar tony001

update:更新路由文件 - u1

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