소스 검색

修改bug

修改bug
dangyunlong 1 개월 전
부모
커밋
5995f17d93
2개의 변경된 파일10개의 추가작업 그리고 4개의 파일을 삭제
  1. 2 2
      src/layout/components/Navbar.vue
  2. 8 2
      src/layout/components/Sidebar/Logo.vue

+ 2 - 2
src/layout/components/Navbar.vue

@@ -27,9 +27,9 @@
           <!-- <i class="el-icon-caret-bottom" /> -->
         </div>
         <el-dropdown-menu slot="dropdown">
-          <a :href="'http://' + this.$store.state.user.userurl">
+          <!-- <a :href="'http://' + this.$store.state.user.userurl">
             <el-dropdown-item>返回用户端</el-dropdown-item>
-          </a> 
+          </a>  -->
           <router-link to="/profile/index">
             <div class="userMenuDownItem">
               <el-dropdown-item>

+ 8 - 2
src/layout/components/Sidebar/Logo.vue

@@ -1,12 +1,18 @@
 <template>
   <div class="sidebar-logo-container" :class="{'collapse':collapse}">
     <transition name="sidebarLogoFade">
-      <router-link v-if="collapse" key="collapse" class="sidebar-logo-link" to="/">
+      <!-- <router-link v-if="collapse" key="collapse" class="sidebar-logo-link" to="/">
         <h1 class="sidebar-title">{{ title }} </h1>
       </router-link>
       <router-link v-else key="expand" class="sidebar-logo-link" to="/">
         <h1 class="sidebar-title">{{ title }} </h1>
-      </router-link>
+      </router-link> -->
+      <a :href="'http://' + this.$store.state.user.userurl" v-if="collapse" key="collapse" class="sidebar-logo-link">
+        <h1 class="sidebar-title">{{ title }} </h1>
+      </a>
+      <a :href="'http://' + this.$store.state.user.userurl" v-else key="expand" class="sidebar-logo-link">
+        <h1 class="sidebar-title">{{ title }} </h1>
+      </a>
     </transition>
   </div>
 </template>