Browse Source

[新增]登出行为

WuXinyu 7 years ago
parent
commit
67285506bd
1 changed files with 6 additions and 4 deletions
  1. 6 4
      src/components/UserDropdown/index.vue

+ 6 - 4
src/components/UserDropdown/index.vue

@@ -15,10 +15,12 @@
         个人设置
       </b-dropdown-item>
     </router-link>
-    <b-dropdown-item value="logout">
-      <b-icon icon="logout"></b-icon>
-      登出
-    </b-dropdown-item>
+    <router-link :to="{ name: 'LOGIN' }">
+      <b-dropdown-item value="logout">
+        <b-icon icon="logout"></b-icon>
+        登出
+      </b-dropdown-item>
+    </router-link>
   </b-dropdown>
 </template>