From a19094c8f57315c69401219cfb3b5139dde722ba Mon Sep 17 00:00:00 2001
From: doum <doum>
Date: 星期五, 13 三月 2026 16:40:03 +0800
Subject: [PATCH] 海康电表维护
---
admin/src/main.js | 14 +++++++-------
1 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/admin/src/main.js b/admin/src/main.js
index dc697c7..d04334f 100644
--- a/admin/src/main.js
+++ b/admin/src/main.js
@@ -38,7 +38,7 @@
router,
store,
computed: {
- ...mapState(['userInfo', 'homePage','topMenuCurrent','menuData'])
+ ...mapState(['userInfo', 'homePage', 'topMenuCurrent', 'menuData'])
},
watch: {
async userInfo () {
@@ -55,7 +55,7 @@
}
},
methods: {
- ...mapMutations(['switchCollapseMenu', 'setCurrentIndex', 'setHomePage', 'setTopMenuCurrent', 'setTopMenuCurrent','cleartagsview']),
+ ...mapMutations(['switchCollapseMenu', 'setCurrentIndex', 'setHomePage', 'setTopMenuCurrent', 'setTopMenuCurrent', 'cleartagsview']),
// 鍒濆鍖栨湰鍦伴厤缃�
initLocalConfig () {
// 鑿滃崟鐘舵�侀厤缃�
@@ -86,9 +86,9 @@
})
storeTopMenus.push.apply(storeTopMenus, topList)
var topCurrent = null
- var tlist =[]
+ var tlist = []
topList.forEach(item => {
- if (item.linkType === 0 ) {
+ if (item.linkType === 0) {
if (topCurrent == null) {
topCurrent = item
}
@@ -96,7 +96,7 @@
}
})
if (this.$route.query && this.$route.query.menuparams) {
- let menu = topList.filter(item => item.params === this.$route.query.menuparams)
+ const menu = topList.filter(item => item.params === this.$route.query.menuparams)
this.setTopMenuCurrent(menu[0])
this.setCurrentIndex(topList.findIndex(obj => obj.params === this.$route.query.menuparams))
} else {
@@ -146,8 +146,8 @@
console.log('menus', this.menuData.list)
// 娣诲姞璺敱
// this.__addRouters(this.menuData.list)
- if(this.topMenuCurrent.homeUrl){
- await this.$router.push({path: this.topMenuCurrent.homeUrl, query: {}})
+ if (this.topMenuCurrent.homeUrl) {
+ await this.$router.push({ path: this.topMenuCurrent.homeUrl, query: {} })
}
},
// 鏂板缓璺敱
--
Gitblit v1.9.3