|
@@ -45,8 +45,9 @@ export default {
|
|
|
// 获取最后一级菜单
|
|
|
const last = await this.setactiveIndex(env);
|
|
|
console.log(env, 'env');
|
|
|
+ console.log(last, 'last');
|
|
|
// 赋值当前选选个
|
|
|
- this.activeIndex = (last?.code == 'ztjy' && env.children) ? env.children[1].code : last?.code;
|
|
|
+ this.activeIndex = (env?.code.includes('ztjy')) ? env.code : last?.code;
|
|
|
// 缓存写入当前一例菜单
|
|
|
this.$setParentsetSession({ menus: this.menusalls, iscode: last });
|
|
|
// 写入当前菜单编码
|
|
@@ -81,7 +82,7 @@ export default {
|
|
|
this.$router.push(`/list/${this.activeIndex}?parentCode=${parentCode}`);
|
|
|
return;
|
|
|
}
|
|
|
- const routeUrl = this.$router.resolve(`/templates/${env.template}/${this.activeIndex}`);
|
|
|
+ const routeUrl = this.activeIndex == 'ztjy' ? this.$router.resolve(`/templates/${env.template}/${this.activeIndex}`) : this.$router.resolve(`/templates/${env.template}/list/${this.activeIndex}`);
|
|
|
window.open(routeUrl.href, '_blank');
|
|
|
}
|
|
|
// 类型为2(单页)进入单页页面
|