e59aa112 by renchao@pashanhoo.com

左侧菜单列表

1 parent e2f8dcd3
<!--
* @Description: workFrame左侧菜单列表-分割
* @Autor: renchao
* @LastEditTime: 2024-02-01 16:58:20
* @LastEditTime: 2024-03-08 12:52:22
-->
<template>
<div class="leftmenu" :class="{ 'animation-map-drawer': isShowdrawer }">
......@@ -96,7 +96,15 @@
watch: {
isRefresh: {
handler (newVal, oldVal) {
if (newVal) this.loadBdcdylist(true)
let that = this
if (newVal) {
if (that.activeIndex >= 0) {
that.unitClick(sessionStorage.getItem('keyPath') - 0)
}
if (that.activeHIndex >= 0) {
that.handleAfterunitClick(sessionStorage.getItem('keyPath') - 0)
}
}
},
immediate: true
},
......@@ -139,9 +147,10 @@
this.judgeBatchShow();
if (!status) {
if (sessionStorage.getItem('keyPath')) {
if (this.aroundShow) {
if (that.activeIndex >= 0) {
that.unitClick(sessionStorage.getItem('keyPath') - 0)
} else {
}
if (that.activeHIndex >= 0) {
that.handleAfterunitClick(sessionStorage.getItem('keyPath') - 0)
}
} else {
......@@ -178,9 +187,10 @@
this.judgeBatchShow();
if (!status) {
if (sessionStorage.getItem('keyPath')) {
if (this.aroundShow) {
if (that.activeIndex >= 0) {
that.unitClick(sessionStorage.getItem('keyPath') - 0)
} else {
}
if (that.activeHIndex >= 0) {
that.handleAfterunitClick(sessionStorage.getItem('keyPath') - 0)
}
} else {
......
......@@ -71,7 +71,7 @@ module.exports = {
filename: `static/js/[name].[hash].js`,
chunkFilename: `static/js/[name].[hash].js`,
},
devtool: process.env.NODE_ENV === 'development' ? '#eval-source-map' : false
devtool: "source map"
},
// chainWebpack通过链式编程的形式,来修改默认的webpack配置
chainWebpack (config) {
......