wuhongyu il y a 5 ans
Parent
commit
4093cf73ba
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 2 2
      src/layout/enterprise/heads.vue

+ 2 - 2
src/layout/enterprise/heads.vue

@@ -12,6 +12,7 @@
           <p>
             <span v-if="user && user.name"
               >{{ user.name }}
+
               <button type="button" class="logininfo" @click="zhuxiao">注销</button>
             </span>
           </p>
@@ -33,7 +34,6 @@
     </div>
   </div>
 </template>
-
 <script>
 import { mapState, createNamespacedHelpers } from 'vuex';
 const { mapActions: login } = createNamespacedHelpers('login');
@@ -59,7 +59,7 @@ export default {
       this.toLogin();
     },
     async toLogin() {
-      this.$router.push({ path: '/' });
+      this.$router.push({ path: '/platlive' });
     },
   },
   computed: {