|
@@ -44,8 +44,9 @@ export default {
|
|
|
async handleSelect(env) {
|
|
|
// 获取最后一级菜单
|
|
|
const last = await this.setactiveIndex(env);
|
|
|
+ console.log(env, 'env');
|
|
|
// 赋值当前选选个
|
|
|
- this.activeIndex = last?.code == 'ztjy' ? env.children[1].code : last?.code;
|
|
|
+ this.activeIndex = (last?.code == 'ztjy' && env.children) ? env.children[1].code : last?.code;
|
|
|
// 缓存写入当前一例菜单
|
|
|
this.$setParentsetSession({ menus: this.menusalls, iscode: last });
|
|
|
// 写入当前菜单编码
|