diff --git a/src/App.vue b/src/App.vue
index 17defbc..3cb1f6f 100755
--- a/src/App.vue
+++ b/src/App.vue
@@ -11,7 +11,7 @@
-
+
@@ -34,6 +34,7 @@ export default {
data() {
return {
isCollapse: true,
+ user:null
};
},
components: {
@@ -46,6 +47,8 @@ export default {
...mapState(['hosMenuData','slidermenu','customize','showSidebar', 'showFooter', 'showHeader']) // 从Vuex映射showSidebar状态到组件的计算属性中
},
mounted() {
+ this.user = localStorage.getItem('nick')
+
window.addEventListener('beforeunload', this.clearStorage);
},
beforeUnmount() {
diff --git a/src/components/Header.vue b/src/components/Header.vue
index 370da11..5d54338 100644
--- a/src/components/Header.vue
+++ b/src/components/Header.vue
@@ -3,33 +3,84 @@
-
+
\ No newline at end of file
diff --git a/src/views/login.vue b/src/views/login.vue
index bda36a9..2a6ba68 100644
--- a/src/views/login.vue
+++ b/src/views/login.vue
@@ -12,7 +12,6 @@
登录即代表同意 《用户协议》和 《隐私条款》
若无账号,请先联系客服注册
-