提交 d684526d 编写于 作者: RedPig97's avatar RedPig97

update: 登录视图路由优化

上级 47de7737
......@@ -114,7 +114,7 @@ Vue.use(Router);
<#macro getRouteInfo app>
<#list app.getAllPSAppViews() as subView>
<#if subView.getRefFlag() && subView.getViewType() != "APPINDEXVIEW">
<#if subView.getRefFlag() && subView.getViewType() != "APPINDEXVIEW" || subView.getViewType() != "APPLOGINVIEW">
<#if !subView.isRedirectView()>
<#if subView.isPSDEView()>
<#assign appDataEntity = subView.getPSAppDataEntity()/>
......@@ -332,7 +332,16 @@ const router = new Router({
router.app.$store.commit('resetRootStateData');
next();
},
<#list app.getAllPSAppViews() as subView>
<#if subView.getRefFlag() && subView.getViewType() == "APPLOGINVIEW">
<#assign loginView = subView>
</#if>
</#list>
<#if loginView??>
component: () => import('@pages/${srffilepath2(loginView.getPSAppModule().getCodeName())}/${srffilepath2(loginView.getCodeName())}/${srffilepath2(loginView.getCodeName())}.vue'),
<#else>
component: () => import('@components/login/login.vue'),
</#if>
},
{
path: '/lock',
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册