|
@@ -45,13 +45,13 @@ export default {
|
|
|
// 获取最后一级菜单
|
|
|
const last = await this.setactiveIndex(env);
|
|
|
// 赋值当前选选个
|
|
|
- this.activeIndex = last?.code;
|
|
|
+ this.activeIndex = last?.code == 'ztjy' ? env.children[1].code : last?.code;
|
|
|
// 缓存写入当前一例菜单
|
|
|
this.$setParentsetSession({ menus: this.menusalls, iscode: last });
|
|
|
// 写入当前菜单编码
|
|
|
sessionStorage.setItem('code', this.activeIndex);
|
|
|
// 获取当前一例的顶级菜单编码
|
|
|
- const parentCode = env.code.substring(0, 2);
|
|
|
+ const parentCode = env.parentCode == 'null' ? env.code : env.parentCode;
|
|
|
// 如果编码 = 00 进入主页
|
|
|
if (env.code == '00') {
|
|
|
this.$router.push('/');
|