From 477abc3c0b1f446e1aea81d668a49d03637c1fe2 Mon Sep 17 00:00:00 2001 From: hiluluke Date: Mon, 1 Aug 2016 14:47:38 +0800 Subject: [PATCH] =?UTF-8?q?add=20=E7=99=BB=E5=87=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/assets/styl/common/sidebar.styl | 2 +- src/components/common/dialog.vue | 3 ++- src/components/common/sidebar.vue | 30 +++++++++++++++++++++++++---- src/vuex/actions/user_actions.js | 6 ++++++ src/vuex/modules/user_info.js | 8 +++++++- src/vuex/mutation_types.js | 1 + 6 files changed, 43 insertions(+), 7 deletions(-) diff --git a/src/assets/styl/common/sidebar.styl b/src/assets/styl/common/sidebar.styl index 53bdb1e..1de32ff 100644 --- a/src/assets/styl/common/sidebar.styl +++ b/src/assets/styl/common/sidebar.styl @@ -49,7 +49,7 @@ color color-font-white font-size 30px .logout - padding-top 2px + padding-top 12px color color-font-white - 60 a font-size 28px diff --git a/src/components/common/dialog.vue b/src/components/common/dialog.vue index 5c1cea5..a4bffe8 100644 --- a/src/components/common/dialog.vue +++ b/src/components/common/dialog.vue @@ -27,7 +27,8 @@ }, methods: { sure () { - if (this.config.callback) this.config.callbak() + console.log(this.config.callback) + if (this.config.callback) this.config.callback() this.close() }, close () { diff --git a/src/components/common/sidebar.vue b/src/components/common/sidebar.vue index 1c6c430..cb07968 100644 --- a/src/components/common/sidebar.vue +++ b/src/components/common/sidebar.vue @@ -61,11 +61,13 @@ +