From 659da36d6d2fa187ded5ef1f094d5a2c766aab04 Mon Sep 17 00:00:00 2001
From: java110 <928255095@qq.com>
Date: Sat, 26 Feb 2022 17:48:53 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=A8=A1=E6=9D=BF=E4=BF=A1?=
=?UTF-8?q?=E6=81=AF?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../frame/breadcrumb/breadcrumb.html | 2 +-
.../components/frame/breadcrumb/breadcrumb.js | 21 +++++-
public/components/frame/menu/menu.html | 2 +-
public/components/frame/menu/menu.js | 3 +-
public/index.html | 69 +++++++++++--------
5 files changed, 66 insertions(+), 31 deletions(-)
diff --git a/public/components/frame/breadcrumb/breadcrumb.html b/public/components/frame/breadcrumb/breadcrumb.html
index 9a4e1783e..57bbf0413 100755
--- a/public/components/frame/breadcrumb/breadcrumb.html
+++ b/public/components/frame/breadcrumb/breadcrumb.html
@@ -1,4 +1,4 @@
-
+
-
{{item.pageName}}
diff --git a/public/components/frame/breadcrumb/breadcrumb.js b/public/components/frame/breadcrumb/breadcrumb.js
index f141a3994..86e20f79d 100755
--- a/public/components/frame/breadcrumb/breadcrumb.js
+++ b/public/components/frame/breadcrumb/breadcrumb.js
@@ -5,7 +5,8 @@
var vm = new Vue({
el: '#breadcrumb',
data: {
- breadCrumbs: []
+ breadCrumbs: [],
+ indexPage: 1,
},
mounted: function() {
//this._freshBreadCrumbByUrl();
@@ -14,7 +15,25 @@
// e.target matches elem
vm.breadCrumbs = [];
vm._freshBreadCrumbByUrl();
+
+ let _hash = location.hash
+
+ if (!_hash) {
+ vm.indexPage = '0';
+ return;
+ }
+ if (_hash.indexOf('?') != -1) {
+ _hash = _hash.substring(0, _hash.indexOf('?'));
+ }
+
+ if (!_hash) {
+ vm.indexPage = '0';
+ return;
+ }
+ vm.indexPage = '1';
+
}, false);
+
},
methods: {
_freshBreadCrumbByUrl: function() {
diff --git a/public/components/frame/menu/menu.html b/public/components/frame/menu/menu.html
index 5f1d2e8c2..aa5c225cf 100755
--- a/public/components/frame/menu/menu.html
+++ b/public/components/frame/menu/menu.html
@@ -13,7 +13,7 @@
-
-
+
{{vc.i18n(menu.name)}}
{{menu.label}}
diff --git a/public/components/frame/menu/menu.js b/public/components/frame/menu/menu.js
index 83bbfac53..468c13f2e 100755
--- a/public/components/frame/menu/menu.js
+++ b/public/components/frame/menu/menu.js
@@ -60,7 +60,8 @@
_menus.sort(function(a, b) {
return a.seq - b.seq
});
- var _currentMenusId = vc.getCurrentMenu() == null ? _menus[0].id : vc.getCurrentMenu();
+ //var _currentMenusId = vc.getCurrentMenu() == null ? _menus[0].id : vc.getCurrentMenu();
+ let _currentMenusId = _menus[0].id;
vm.menus = vm.refreshMenuActive(_menus, _currentMenusId);
vc.setMenus(vm.menus);
vm.miniMenu();
diff --git a/public/index.html b/public/index.html
index c0f18d9ba..d885ce545 100755
--- a/public/index.html
+++ b/public/index.html
@@ -1,20 +1,52 @@
-
+
+
HC智慧物业管理系统
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -25,39 +57,22 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
\ No newline at end of file